diff options
author | Mark Heffernan <meheff@google.com> | 2014-11-04 23:02:09 +0000 |
---|---|---|
committer | Mark Heffernan <meheff@google.com> | 2014-11-04 23:02:09 +0000 |
commit | 2d393ea6ef7ce105ff718768f1047085289a0ae3 (patch) | |
tree | 34341994f767cbcd054e497437e40fab24d5fff7 /llvm/lib/Transforms/Utils/LoopSimplify.cpp | |
parent | fd13743f57cd9af764ced8ec69cb6d385d9f07c6 (diff) | |
download | bcm5719-llvm-2d393ea6ef7ce105ff718768f1047085289a0ae3.tar.gz bcm5719-llvm-2d393ea6ef7ce105ff718768f1047085289a0ae3.zip |
Revert earlier change removing setPreservesCFG from instcombine (r221223) and
change LoopSimplifyPass to be !isCFGOnly. The motivation for the earlier patch
(r221223) was that LoopSimplify is not preserved by instcombine though
setPreservesCFG indicates that it is. This change fixes the issue
by making setPreservesCFG no longer imply LoopSimplifyPass, and is therefore less
invasive.
llvm-svn: 221311
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopSimplify.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopSimplify.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopSimplify.cpp b/llvm/lib/Transforms/Utils/LoopSimplify.cpp index c5a4adf1168..af0501fc242 100644 --- a/llvm/lib/Transforms/Utils/LoopSimplify.cpp +++ b/llvm/lib/Transforms/Utils/LoopSimplify.cpp @@ -778,12 +778,12 @@ namespace { char LoopSimplify::ID = 0; INITIALIZE_PASS_BEGIN(LoopSimplify, "loop-simplify", - "Canonicalize natural loops", true, false) + "Canonicalize natural loops", false, false) INITIALIZE_PASS_DEPENDENCY(AssumptionTracker) INITIALIZE_PASS_DEPENDENCY(DominatorTreeWrapperPass) INITIALIZE_PASS_DEPENDENCY(LoopInfo) INITIALIZE_PASS_END(LoopSimplify, "loop-simplify", - "Canonicalize natural loops", true, false) + "Canonicalize natural loops", false, false) // Publicly exposed interface to pass... char &llvm::LoopSimplifyID = LoopSimplify::ID; |