diff options
Diffstat (limited to 'polly/lib/Transform/IndVarSimplify.cpp')
| -rw-r--r-- | polly/lib/Transform/IndVarSimplify.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/polly/lib/Transform/IndVarSimplify.cpp b/polly/lib/Transform/IndVarSimplify.cpp index 8d4f51cb2cf..6d049b6b69e 100644 --- a/polly/lib/Transform/IndVarSimplify.cpp +++ b/polly/lib/Transform/IndVarSimplify.cpp @@ -1089,7 +1089,7 @@ void WidenIV::pushNarrowIVUsers(Instruction *NarrowDef, Instruction *WideDef) { Instruction *NarrowUser = cast<Instruction>(U); // Handle data flow merges and bizarre phi cycles. - if (!Widened.insert(NarrowUser)) + if (!Widened.insert(NarrowUser).second) continue; NarrowIVUsers.push_back(NarrowIVDefUse(NarrowDef, NarrowUser, WideDef)); @@ -1237,7 +1237,7 @@ void PollyIndVarSimplify::SimplifyAndExtend(Loop *L, SCEVExpander &Rewriter, static bool isHighCostExpansion(const SCEV *S, BranchInst *BI, SmallPtrSet<const SCEV *, 8> &Processed, ScalarEvolution *SE) { - if (!Processed.insert(S)) + if (!Processed.insert(S).second) return false; // If the backedge-taken count is a UDiv, it's very likely a UDiv that |

