Skip to content

Commit

Permalink
boscc: process preds only once (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
simoll committed Mar 26, 2018
1 parent 6425f4e commit a59df71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/transform/bosccTransform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,9 @@ computeDispersion(RatioMap & dispMap) {
// join incoming fractions
bool validRatio = true;
double ratio = 0.0;
SmallPtrSet<const BasicBlock*, 6> seenPreds;
for (auto * pred : predecessors(block)) {
if (!seenPreds.insert(pred).second) continue;
if (!vecInfo.inRegion(*pred)) {
continue;
}
Expand Down

0 comments on commit a59df71

Please sign in to comment.