commit | c5701910604cdf65811fabd31d41e38f1d1d4eb1 | [log] [tgz] |
---|---|---|
author | Andrew Trick <atrick@apple.com> | Fri Oct 07 23:46:21 2011 +0000 |
committer | Andrew Trick <atrick@apple.com> | Fri Oct 07 23:46:21 2011 +0000 |
tree | 87ebc36baa56af35d74481785773869df6290130 | |
parent | 9eb6b4d91b83448ec818089754c74bbdcf7dfd7a [diff] [blame] |
LSR should only reuse phis that match its formula. Fixes rdar://problem/5064068 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141442 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 4b6c55e..26fc03b 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@ -3770,6 +3770,7 @@ SCEVExpander Rewriter(SE, "lsr"); Rewriter.disableCanonicalMode(); + Rewriter.enableLSRMode(); Rewriter.setIVIncInsertPos(L, IVIncInsertPos); // Expand the new value definitions and update the users.