From 7564e0b46d68abbd43a9910882568f4f9875af50 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Sun, 5 Feb 2006 08:45:01 +0000 Subject: [PATCH] Complex pattern isel code shouldn't select nodes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26010 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCISelDAGToDAG.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp index d8bf9fd1ca1..ca70882e92d 100644 --- a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp +++ b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp @@ -392,7 +392,7 @@ bool PPCDAGToDAGISel::SelectAddrImm(SDOperand N, SDOperand &Disp, if (FrameIndexSDNode *FI = dyn_cast(N.getOperand(0))) { Base = CurDAG->getTargetFrameIndex(FI->getIndex(), MVT::i32); } else { - Base = Select(N.getOperand(0)); + Base = N.getOperand(0); } return true; // [r+i] } else if (N.getOperand(1).getOpcode() == PPCISD::Lo) { @@ -402,7 +402,7 @@ bool PPCDAGToDAGISel::SelectAddrImm(SDOperand N, SDOperand &Disp, Disp = N.getOperand(1).getOperand(0); // The global address. assert(Disp.getOpcode() == ISD::TargetGlobalAddress || Disp.getOpcode() == ISD::TargetConstantPool); - Base = Select(N.getOperand(0)); + Base = N.getOperand(0); return true; // [&g+r] } return false; // [r+r] @@ -411,7 +411,7 @@ bool PPCDAGToDAGISel::SelectAddrImm(SDOperand N, SDOperand &Disp, if (FrameIndexSDNode *FI = dyn_cast(N)) Base = CurDAG->getTargetFrameIndex(FI->getIndex(), MVT::i32); else - Base = Select(N); + Base = N; return true; // [r+0] } @@ -427,13 +427,13 @@ bool PPCDAGToDAGISel::SelectAddrIdx(SDOperand N, SDOperand &Base, return false; if (N.getOpcode() == ISD::ADD) { - Base = Select(N.getOperand(0)); - Index = Select(N.getOperand(1)); + Base = N.getOperand(0); + Index = N.getOperand(1); return true; } Base = CurDAG->getRegister(PPC::R0, MVT::i32); - Index = Select(N); + Index = N; return true; } @@ -442,13 +442,13 @@ bool PPCDAGToDAGISel::SelectAddrIdx(SDOperand N, SDOperand &Base, bool PPCDAGToDAGISel::SelectAddrIdxOnly(SDOperand N, SDOperand &Base, SDOperand &Index) { if (N.getOpcode() == ISD::ADD) { - Base = Select(N.getOperand(0)); - Index = Select(N.getOperand(1)); + Base = N.getOperand(0); + Index = N.getOperand(1); return true; } Base = CurDAG->getRegister(PPC::R0, MVT::i32); - Index = Select(N); + Index = N; return true; }