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:
d4623e9
)
isNonImmUse is replaced by IsFoldableBy
author
Evan Cheng
<evan.cheng@apple.com>
Thu, 27 Jul 2006 21:19:10 +0000
(21:19 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Thu, 27 Jul 2006 21:19:10 +0000
(21:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29365
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86ISelDAGToDAG.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86ISelDAGToDAG.cpp
b/lib/Target/X86/X86ISelDAGToDAG.cpp
index 0bf036c227d3142a4f6de65ecbea6749fca5c081..a82904df014c19515971d97a313c400e7ef51840 100644
(file)
--- a/
lib/Target/X86/X86ISelDAGToDAG.cpp
+++ b/
lib/Target/X86/X86ISelDAGToDAG.cpp
@@
-640,7
+640,7
@@
bool X86DAGToDAGISel::TryFoldLoad(SDOperand P, SDOperand N,
if (N.getOpcode() == ISD::LOAD &&
N.hasOneUse() &&
!CodeGenMap.count(N.getValue(0)) &&
-
(P.getNumOperands() == 1 || !isNonImmUse(P.Val, N.Val)
))
+
!IsFoldableBy(N.Val, P.Val
))
return SelectAddr(N.getOperand(1), Base, Scale, Index, Disp);
return false;
}