commit | 11745d4c0276ccb5c64f83d6954b54c8ff2aec98 | [log] [tgz] |
---|---|---|
author | Andrew Trick <atrick@apple.com> | Wed Jun 29 03:13:40 2011 +0000 |
committer | Andrew Trick <atrick@apple.com> | Wed Jun 29 03:13:40 2011 +0000 |
tree | 11be986620f4d7240e0e489bc6eeca6f44925ce3 | |
parent | 2c0cbce763a258ac58590a8ca3c28ff722093fef [diff] |
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
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 @@ // 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;