diff options
author | Andrew Trick <atrick@apple.com> | 2011-06-29 03:13:40 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2011-06-29 03:13:40 +0000 |
commit | 11745d4c0276ccb5c64f83d6954b54c8ff2aec98 (patch) | |
tree | 11be986620f4d7240e0e489bc6eeca6f44925ce3 /lib | |
parent | 2c0cbce763a258ac58590a8ca3c28ff722093fef (diff) | |
download | external_llvm-11745d4c0276ccb5c64f83d6954b54c8ff2aec98.zip external_llvm-11745d4c0276ccb5c64f83d6954b54c8ff2aec98.tar.gz external_llvm-11745d4c0276ccb5c64f83d6954b54c8ff2aec98.tar.bz2 |
indvars -disable-iv-rewrite: just because SCEV ignores casts doesn't
mean they can be removed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134054 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 8986dbb..919da35 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -1007,6 +1007,7 @@ bool IndVarSimplify::EliminateIVUser(Instruction *UseInst, // Eliminate any operation that SCEV can prove is an identity function. if (!SE->isSCEVable(UseInst->getType()) || + (UseInst->getType() != IVOperand->getType()) || (SE->getSCEV(UseInst) != SE->getSCEV(IVOperand))) return false; |