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 | 3fe98ae10a6ff038f64955c7ab72d6a32425a101 (patch) | |
tree | c8223988b539e7abd8549dee12b7f4adbaa642ff /llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | |
parent | af313982956a8600985fb1aac3d036083446c0b9 (diff) | |
download | bcm5719-llvm-3fe98ae10a6ff038f64955c7ab72d6a32425a101.tar.gz bcm5719-llvm-3fe98ae10a6ff038f64955c7ab72d6a32425a101.zip |
no need to worry about int vs uint any more.
llvm-svn: 32946
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 3e92a168823..53fa9e200c0 100644 --- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/llvm/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; } |