Changes in directory llvm/lib/Target/X86:
X86ISelDAGToDAG.cpp updated: 1.92 -> 1.93 --- Log message: Doh. Incorrectly inverted condition. Also add a isOnlyUse check to match tablegen. --- Diffs of the changes: (+2 -1) X86ISelDAGToDAG.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) Index: llvm/lib/Target/X86/X86ISelDAGToDAG.cpp diff -u llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.92 llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.93 --- llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.92 Wed Aug 16 02:30:09 2006 +++ llvm/lib/Target/X86/X86ISelDAGToDAG.cpp Wed Aug 16 18:59:00 2006 @@ -610,7 +610,8 @@ SDOperand &Index, SDOperand &Disp) { if (N.getOpcode() == ISD::LOAD && N.hasOneUse() && - !CanBeFoldedBy(N.Val, P.Val)) + P.Val->isOnlyUse(N.Val) && + CanBeFoldedBy(N.Val, P.Val)) return SelectAddr(N.getOperand(1), Base, Scale, Index, Disp); return false; } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits