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:
79fb3b4
)
It's not necessary to check if Base is null here.
author
Dan Gohman
<gohman@apple.com>
Fri, 20 Feb 2009 21:05:23 +0000
(21:05 +0000)
committer
Dan Gohman
<gohman@apple.com>
Fri, 20 Feb 2009 21:05:23 +0000
(21:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65157
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
e3f7fbd
..
b03dcf4
100644
(file)
--- a/
lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/
lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@
-1548,8
+1548,7
@@
bool LoopStrengthReduce::ShouldUseFullStrengthReductionMode(
// a register for their base, full strength-reduction will increase
// register pressure.
for (unsigned i = 0, e = UsersToProcess.size(); i != e; ++i)
- if (!UsersToProcess[i].Base ||
- UsersToProcess[i].Base->isZero())
+ if (UsersToProcess[i].Base->isZero())
return false;
// Otherwise, go for it.