From 7666d8192cab7a3927db80d8ab3016392d2e6f3b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 17 Nov 2005 18:30:17 +0000 Subject: [PATCH] Fix a bug that resistor on IRC hit where we tried to create token factor nodes of load results, not of their chain results. llvm-svn: 24398 --- lib/Target/PowerPC/PPCISelLowering.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index 216372987f3..6ea688d020e 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/lib/Target/PowerPC/PPCISelLowering.cpp @@ -670,7 +670,7 @@ PPCTargetLowering::LowerCallTo(SDOperand Chain, if (GPR_remaining > 0) { SDOperand Load = DAG.getLoad(MVT::i32, Store, PtrOff, DAG.getSrcValue(NULL)); - MemOps.push_back(Load); + MemOps.push_back(Load.getValue(1)); args_to_use.push_back(Load); --GPR_remaining; } @@ -679,7 +679,7 @@ PPCTargetLowering::LowerCallTo(SDOperand Chain, PtrOff = DAG.getNode(ISD::ADD, MVT::i32, PtrOff, ConstFour); SDOperand Load = DAG.getLoad(MVT::i32, Store, PtrOff, DAG.getSrcValue(NULL)); - MemOps.push_back(Load); + MemOps.push_back(Load.getValue(1)); args_to_use.push_back(Load); --GPR_remaining; }