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:
64c88d7
)
Minor bug.
author
Evan Cheng
<evan.cheng@apple.com>
Tue, 20 Mar 2007 19:32:11 +0000
(19:32 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Tue, 20 Mar 2007 19:32:11 +0000
(19:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35219
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 5623776158cd8745ac2ba44c0ed239e721dd6f9c..70506e32fcd41315c59bd1d3937132c95bc91046 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@
-4009,7
+4009,8
@@
static bool SinkInvariantGEPIndex(BinaryOperator *BinOp, LoopInfo *loopInfo,
// Check if it is possible to fold the expression to address mode.
if (UseTy &&
- TLI.isLegalAddressExpression(Instruction::Add, BinOp->getOperand(0),
+ TLI.isLegalAddressExpression(BinOp->getOpcode(),
+ BinOp->getOperand(0),
BinOp->getOperand(1), UseTy)) {
DestBBs.insert(UserBB);
MadeChange = true;