From 046761f312919c41bae0e7918f8be0524a201359 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 1 Dec 2005 18:09:22 +0000 Subject: [PATCH] Make sure these get added into the codegenmap when appropriate llvm-svn: 24566 --- lib/Target/PowerPC/PPCISelDAGToDAG.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp index 59edcd76000..252de5ee51c 100644 --- a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp +++ b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp @@ -887,9 +887,10 @@ SDOperand PPCDAGToDAGISel::Select(SDOperand Op) { return CurDAG->SelectNodeTo(N, PPC::ADDI, MVT::i32, CurDAG->getTargetFrameIndex(FI, MVT::i32), getI32Imm(0)); - return CurDAG->getTargetNode(PPC::ADDI, MVT::i32, - CurDAG->getTargetFrameIndex(FI, MVT::i32), - getI32Imm(0)); + return CodeGenMap[Op] = + CurDAG->getTargetNode(PPC::ADDI, MVT::i32, + CurDAG->getTargetFrameIndex(FI, MVT::i32), + getI32Imm(0)); } case ISD::ConstantPool: { Constant *C = cast(N)->get(); @@ -900,7 +901,7 @@ SDOperand PPCDAGToDAGISel::Select(SDOperand Op) { Tmp = CurDAG->getTargetNode(PPC::LIS, MVT::i32, CPI); if (N->hasOneUse()) return CurDAG->SelectNodeTo(N, PPC::LA, MVT::i32, Tmp, CPI); - return CurDAG->getTargetNode(PPC::LA, MVT::i32, Tmp, CPI); + return CodeGenMap[Op] = CurDAG->getTargetNode(PPC::LA, MVT::i32, Tmp, CPI); } case ISD::FADD: { MVT::ValueType Ty = N->getValueType(0);