OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab4be63
)
no need to worry about int vs uint any more.
author
Chris Lattner
<sabre@nondot.org>
Sat, 6 Jan 2007 01:37:35 +0000
(
01:37
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 6 Jan 2007 01:37:35 +0000
(
01:37
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32946
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/LoopStrengthReduce.cpp
b/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index
3e92a16
..
53fa9e2
100644
(file)
--- 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;
}