diff options
author | Chris Lattner <sabre@nondot.org> | 2007-01-06 01:37:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-01-06 01:37:35 +0000 |
commit | d5dc0fb011af11c2ca4b5f42852dd51830b0fdee (patch) | |
tree | 65547663c0e4e44a4f686ee83d0659952aaee16e /lib/Transforms/Scalar/LoopStrengthReduce.cpp | |
parent | ab4be6328764ab20a46b18b3e0f964a903000f04 (diff) | |
download | llvm-d5dc0fb011af11c2ca4b5f42852dd51830b0fdee.tar.gz llvm-d5dc0fb011af11c2ca4b5f42852dd51830b0fdee.tar.bz2 llvm-d5dc0fb011af11c2ca4b5f42852dd51830b0fdee.tar.xz |
no need to worry about int vs uint any more.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32946 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LoopStrengthReduce.cpp')
-rw-r--r-- | lib/Transforms/Scalar/LoopStrengthReduce.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 3e92a16882..53fa9e200c 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -900,8 +900,7 @@ unsigned LoopStrengthReduce::CheckForIVReuse(const SCEVHandle &Stride, IE = SI->second.IVs.end(); II != IE; ++II) // FIXME: Only handle base == 0 for now. // Only reuse previous IV if it would not require a type conversion. - if (isZero(II->Base) && - II->Base->getType()->canLosslesslyBitCastTo(Ty)) { + if (isZero(II->Base) && II->Base->getType() == Ty) { IV = *II; return Scale; } |