From: Chris Lattner Date: Thu, 1 Sep 2005 19:20:44 +0000 (+0000) Subject: Do not select the operands being passed into SelectCC. IT does this itself X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=50ff55c2c7909818165e51bbdc103a05b143dcb1;p=oota-llvm.git Do not select the operands being passed into SelectCC. IT does this itself and selecting early prevents folding immediates into the cmpw* instructions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23188 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp index 082c876859b..d8d07005983 100644 --- a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp +++ b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp @@ -1344,8 +1344,7 @@ SDOperand PPC32DAGToDAGISel::Select(SDOperand Op) { bool Inv; unsigned Idx = getCRIdxForSetCC(CC, Inv); - SDOperand CCReg = - SelectCC(Select(N->getOperand(0)), Select(N->getOperand(1)), CC); + SDOperand CCReg = SelectCC(N->getOperand(0), N->getOperand(1), CC); SDOperand IntCR; // Force the ccreg into CR7. @@ -1396,8 +1395,7 @@ SDOperand PPC32DAGToDAGISel::Select(SDOperand Op) { break; } - SDOperand CCReg = SelectCC(Select(N->getOperand(0)), - Select(N->getOperand(1)), CC); + SDOperand CCReg = SelectCC(N->getOperand(0), N->getOperand(1), CC); unsigned BROpc = getBCCForSetCC(CC); bool isFP = MVT::isFloatingPoint(N->getValueType(0));