Do not select the operands being passed into SelectCC. IT does this itself

and selecting early prevents folding immediates into the cmpw* instructions

llvm-svn: 23188
This commit is contained in:
Chris Lattner 2005-09-01 19:20:44 +00:00
parent 975f5c9f46
commit 34182aff7f
1 changed files with 2 additions and 4 deletions

View File

@ -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));