diff --git a/src/transform/bosccTransform.cpp b/src/transform/bosccTransform.cpp index e70ea5cf..0b69202f 100644 --- a/src/transform/bosccTransform.cpp +++ b/src/transform/bosccTransform.cpp @@ -501,7 +501,9 @@ computeDispersion(RatioMap & dispMap) { // join incoming fractions bool validRatio = true; double ratio = 0.0; + SmallPtrSet seenPreds; for (auto * pred : predecessors(block)) { + if (!seenPreds.insert(pred).second) continue; if (!vecInfo.inRegion(*pred)) { continue; }