[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Sep 1 12:20:55 PDT 2005
Changes in directory llvm/lib/Target/PowerPC:
PPC32ISelDAGToDAG.cpp updated: 1.67 -> 1.68
---
Log message:
Do not select the operands being passed into SelectCC. IT does this itself
and selecting early prevents folding immediates into the cmpw* instructions
---
Diffs of the changes: (+2 -4)
PPC32ISelDAGToDAG.cpp | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
Index: llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp
diff -u llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp:1.67 llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp:1.68
--- llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp:1.67 Wed Aug 31 16:09:52 2005
+++ llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp Thu Sep 1 14:20:44 2005
@@ -1344,8 +1344,7 @@
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 @@
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));
More information about the llvm-commits
mailing list