summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-01-19 12:12:00 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-01-19 12:12:00 +0000
commitf8753fc48da54f28c2fbc1d143b41461646f693f (patch)
tree3ffe67ac26286a0e309f971c4ac62ce1a838475b /llvm/lib
parent37df2cfbf804698b378c685a937d20bc4f809155 (diff)
downloadbcm5719-llvm-f8753fc48da54f28c2fbc1d143b41461646f693f.tar.gz
bcm5719-llvm-f8753fc48da54f28c2fbc1d143b41461646f693f.zip
[PM] Cleanup a dead option to critical edge splitting that I noticed
while refactoring this API for the new pass manager. No functionality changed here, the code didn't actually support this option. llvm-svn: 226457
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopUnswitch.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
index e809a5ccc84..276af27f2fb 100644
--- a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
@@ -706,9 +706,7 @@ void LoopUnswitch::EmitPreheaderBranchOnCondition(Value *LIC, Constant *Val,
// If either edge is critical, split it. This helps preserve LoopSimplify
// form for enclosing loops.
- auto Options = CriticalEdgeSplittingOptions(DT, LI)
- .setPreserveLCSSA()
- .setSplitLandingPads();
+ auto Options = CriticalEdgeSplittingOptions(DT, LI).setPreserveLCSSA();
SplitCriticalEdge(BI, 0, Options);
SplitCriticalEdge(BI, 1, Options);
}
OpenPOWER on IntegriCloud