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:
1e3121c
)
Add a TODO comment.
author
Dan Gohman
<gohman@apple.com>
Sat, 19 Jun 2010 21:30:18 +0000
(21:30 +0000)
committer
Dan Gohman
<gohman@apple.com>
Sat, 19 Jun 2010 21:30:18 +0000
(21:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106397
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 0d4fd2f4626a643ce8cb97f711efe973f58a9271..72b8b8ffc47706db709ecbb9eaa2283cd524d821 100644
(file)
--- a/
lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/
lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@
-1835,6
+1835,8
@@
LSRInstance::reconcileNewOffset(LSRUse &LU, int64_t NewOffset, bool HasBaseReg,
NewMaxOffset = NewOffset;
}
// Check for a mismatched access type, and fall back conservatively as needed.
+ // TODO: Be less conservative when the type is similar and can use the same
+ // addressing modes.
if (Kind == LSRUse::Address && AccessTy != LU.AccessTy)
NewAccessTy = Type::getVoidTy(AccessTy->getContext());