[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCISelLowering.cpp

Chris Lattner lattner at cs.uiuc.edu
Thu Nov 17 10:30:29 PST 2005



Changes in directory llvm/lib/Target/PowerPC:

PPCISelLowering.cpp updated: 1.43 -> 1.44
---
Log message:

Fix a bug that resistor on IRC hit where we tried to create token factor
nodes of load results, not of their chain results.


---
Diffs of the changes:  (+2 -2)

 PPCISelLowering.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff -u llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.43 llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.44
--- llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.43	Thu Nov 17 12:26:56 2005
+++ llvm/lib/Target/PowerPC/PPCISelLowering.cpp	Thu Nov 17 12:30:17 2005
@@ -670,7 +670,7 @@
             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 @@
               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;
             }






More information about the llvm-commits mailing list