projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdf0d7c
)
Only try to sink immediate when TLI is not null. It needs to check if immediate would...
author
Evan Cheng
<evan.cheng@apple.com>
Sun, 22 Feb 2009 07:31:19 +0000
(07:31 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Sun, 22 Feb 2009 07:31:19 +0000
(07:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65268
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 2099ceace517f933502d9cd8c67afb0cf8cf09e8..1817e5837472b1340e3b3ac6878afd1af990d589 100644
(file)
--- a/
lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/
lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@
-1828,7
+1828,7
@@
void LoopStrengthReduce::StrengthReduceStridedIVUsers(const SCEVHandle &Stride,
// If all uses are addresses, consider sinking the immediate part of the
// common expression back into uses if they can fit in the immediate fields.
- if (HaveCommonExprs && AllUsesAreAddresses) {
+ if (
TLI &&
HaveCommonExprs && AllUsesAreAddresses) {
SCEVHandle NewCommon = CommonExprs;
SCEVHandle Imm = SE->getIntegerSCEV(0, ReplacedTy);
MoveImmediateValues(TLI, ReplacedTy, NewCommon, Imm, true, L, SE);