diff options
| author | Tobias Grosser <tobias@grosser.es> | 2014-11-19 14:32:32 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2014-11-19 14:32:32 +0000 |
| commit | 422b30a01725302c6ecf8e9cc78c3b72c2cb199e (patch) | |
| tree | e330e8be5e072974e2767e3f370804ceda0b0278 | |
| parent | fe2cf6673a2b126409439c617cba7811dc75f7ba (diff) | |
| download | bcm5719-llvm-422b30a01725302c6ecf8e9cc78c3b72c2cb199e.tar.gz bcm5719-llvm-422b30a01725302c6ecf8e9cc78c3b72c2cb199e.zip | |
Use new Small(Ptr)Set API
This fixes the recent build failures.
llvm-svn: 222358
| -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 |

