[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp PPC64ISelPattern.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed May 11 19:06:15 PDT 2005
Changes in directory llvm/lib/Target/PowerPC:
PPC32ISelPattern.cpp updated: 1.84 -> 1.85
PPC64ISelPattern.cpp updated: 1.14 -> 1.15
---
Log message:
These targets don't like setcc
---
Diffs of the changes: (+6 -0)
PPC32ISelPattern.cpp | 3 +++
PPC64ISelPattern.cpp | 3 +++
2 files changed, 6 insertions(+)
Index: llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
diff -u llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp:1.84 llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp:1.85
--- llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp:1.84 Wed May 11 18:43:56 2005
+++ llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp Wed May 11 21:06:00 2005
@@ -43,6 +43,9 @@
int ReturnAddrIndex; // FrameIndex for return slot.
public:
PPC32TargetLowering(TargetMachine &TM) : TargetLowering(TM) {
+ // Fold away setcc operations if possible.
+ setSetCCIsExpensive();
+
// Set up the register classes.
addRegisterClass(MVT::i32, PPC32::GPRCRegisterClass);
addRegisterClass(MVT::f32, PPC32::FPRCRegisterClass);
Index: llvm/lib/Target/PowerPC/PPC64ISelPattern.cpp
diff -u llvm/lib/Target/PowerPC/PPC64ISelPattern.cpp:1.14 llvm/lib/Target/PowerPC/PPC64ISelPattern.cpp:1.15
--- llvm/lib/Target/PowerPC/PPC64ISelPattern.cpp:1.14 Wed May 4 14:25:37 2005
+++ llvm/lib/Target/PowerPC/PPC64ISelPattern.cpp Wed May 11 21:06:00 2005
@@ -41,6 +41,9 @@
int ReturnAddrIndex; // FrameIndex for return slot.
public:
PPC64TargetLowering(TargetMachine &TM) : TargetLowering(TM) {
+ // Fold away setcc operations if possible.
+ setSetCCIsExpensive();
+
// Set up the register classes.
addRegisterClass(MVT::i64, PPC64::GPRCRegisterClass);
addRegisterClass(MVT::f32, PPC64::FPRCRegisterClass);
More information about the llvm-commits
mailing list