[polly] r222358 - Use new Small(Ptr)Set API
Tobias Grosser
tobias at grosser.es
Wed Nov 19 06:32:32 PST 2014
Author: grosser
Date: Wed Nov 19 08:32:32 2014
New Revision: 222358
URL: http://llvm.org/viewvc/llvm-project?rev=222358&view=rev
Log:
Use new Small(Ptr)Set API
This fixes the recent build failures.
Modified:
polly/trunk/lib/Transform/IndVarSimplify.cpp
Modified: polly/trunk/lib/Transform/IndVarSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/IndVarSimplify.cpp?rev=222358&r1=222357&r2=222358&view=diff
==============================================================================
--- polly/trunk/lib/Transform/IndVarSimplify.cpp (original)
+++ polly/trunk/lib/Transform/IndVarSimplify.cpp Wed Nov 19 08:32:32 2014
@@ -1089,7 +1089,7 @@ void WidenIV::pushNarrowIVUsers(Instruct
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::SimplifyAndExt
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
More information about the llvm-commits
mailing list