[PATCH] LoopVectorize: add missing dependencies.

Peter Zotov whitequark at whitequark.org
Sat Oct 12 04:03:13 PDT 2013


    Several INITIALIZE_PASS_DEPENDENCY macro invocations were missing (compared
    to analysis usage) from the LoopVectorize pass, causing
    an assertion failure in PassManager::schedulePass.


http://llvm-reviews.chandlerc.com/D1907

Files:
  lib/Transforms/Vectorize/LoopVectorize.cpp

Index: lib/Transforms/Vectorize/LoopVectorize.cpp
===================================================================
--- lib/Transforms/Vectorize/LoopVectorize.cpp
+++ lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -4866,6 +4866,9 @@
 INITIALIZE_AG_DEPENDENCY(TargetTransformInfo)
 INITIALIZE_PASS_DEPENDENCY(ScalarEvolution)
 INITIALIZE_PASS_DEPENDENCY(LoopSimplify)
+INITIALIZE_PASS_DEPENDENCY(LoopInfo)
+INITIALIZE_PASS_DEPENDENCY(DominatorTree)
+INITIALIZE_PASS_DEPENDENCY(LCSSA)
 INITIALIZE_PASS_END(LoopVectorize, LV_NAME, lv_name, false, false)
 
 namespace llvm {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1907.1.patch
Type: text/x-patch
Size: 572 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131012/ea4b9b82/attachment.bin>


More information about the llvm-commits mailing list