[llvm-commits] [polly] r146727 - /polly/trunk/lib/IndependentBlocks.cpp

Tobias Grosser grosser at fim.uni-passau.de
Fri Dec 16 00:27:42 PST 2011


Author: grosser
Date: Fri Dec 16 02:27:42 2011
New Revision: 146727

URL: http://llvm.org/viewvc/llvm-project?rev=146727&view=rev
Log:
Adapt to move of isSafeToSpeculativelyExecute into another header.

Modified:
    polly/trunk/lib/IndependentBlocks.cpp

Modified: polly/trunk/lib/IndependentBlocks.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/IndependentBlocks.cpp?rev=146727&r1=146726&r2=146727&view=diff
==============================================================================
--- polly/trunk/lib/IndependentBlocks.cpp (original)
+++ polly/trunk/lib/IndependentBlocks.cpp Fri Dec 16 02:27:42 2011
@@ -21,6 +21,7 @@
 #include "llvm/Analysis/RegionPass.h"
 #include "llvm/Analysis/RegionIterator.h"
 #include "llvm/Analysis/ScalarEvolution.h"
+#include "llvm/Analysis/ValueTracking.h"
 #include "llvm/Transforms/Utils/Local.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/ADT/OwningPtr.h"
@@ -144,7 +145,7 @@
       Inst->mayWriteToMemory())
     return false;
 
-  return Inst->isSafeToSpeculativelyExecute();
+  return isSafeToSpeculativelyExecute(Inst);
 }
 
 void IndependentBlocks::moveOperandTree(Instruction *Inst, const Region *R,





More information about the llvm-commits mailing list