Changes in directory llvm/lib/Target/X86:
X86ISelLowering.cpp updated: 1.74 -> 1.75 --- Log message: Return's chain should be matching either the chain produced by the value or the chain going into the load. --- Diffs of the changes: (+2 -1) X86ISelLowering.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) Index: llvm/lib/Target/X86/X86ISelLowering.cpp diff -u llvm/lib/Target/X86/X86ISelLowering.cpp:1.74 llvm/lib/Target/X86/X86ISelLowering.cpp:1.75 --- llvm/lib/Target/X86/X86ISelLowering.cpp:1.74 Tue Jan 31 18:20:21 2006 +++ llvm/lib/Target/X86/X86ISelLowering.cpp Tue Jan 31 19:19:32 2006 @@ -1916,7 +1916,8 @@ SDOperand Chain = Op.getOperand(0); SDOperand Value = Op.getOperand(1); - if (Value.getOpcode() == ISD::LOAD && Chain == Value.getOperand(0)) { + if (Value.getOpcode() == ISD::LOAD && + (Chain == Value.getValue(1) || Chain == Value.getOperand(0))) { Chain = Value.getOperand(0); MemLoc = Value.getOperand(1); } else { _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits