forked from OSchip/llvm-project
parent
515f53d4fa
commit
f80969f29b
|
@ -43,6 +43,9 @@ namespace {
|
||||||
int ReturnAddrIndex; // FrameIndex for return slot.
|
int ReturnAddrIndex; // FrameIndex for return slot.
|
||||||
public:
|
public:
|
||||||
PPC32TargetLowering(TargetMachine &TM) : TargetLowering(TM) {
|
PPC32TargetLowering(TargetMachine &TM) : TargetLowering(TM) {
|
||||||
|
// Fold away setcc operations if possible.
|
||||||
|
setSetCCIsExpensive();
|
||||||
|
|
||||||
// Set up the register classes.
|
// Set up the register classes.
|
||||||
addRegisterClass(MVT::i32, PPC32::GPRCRegisterClass);
|
addRegisterClass(MVT::i32, PPC32::GPRCRegisterClass);
|
||||||
addRegisterClass(MVT::f32, PPC32::FPRCRegisterClass);
|
addRegisterClass(MVT::f32, PPC32::FPRCRegisterClass);
|
||||||
|
|
|
@ -41,6 +41,9 @@ namespace {
|
||||||
int ReturnAddrIndex; // FrameIndex for return slot.
|
int ReturnAddrIndex; // FrameIndex for return slot.
|
||||||
public:
|
public:
|
||||||
PPC64TargetLowering(TargetMachine &TM) : TargetLowering(TM) {
|
PPC64TargetLowering(TargetMachine &TM) : TargetLowering(TM) {
|
||||||
|
// Fold away setcc operations if possible.
|
||||||
|
setSetCCIsExpensive();
|
||||||
|
|
||||||
// Set up the register classes.
|
// Set up the register classes.
|
||||||
addRegisterClass(MVT::i64, PPC64::GPRCRegisterClass);
|
addRegisterClass(MVT::i64, PPC64::GPRCRegisterClass);
|
||||||
addRegisterClass(MVT::f32, PPC64::FPRCRegisterClass);
|
addRegisterClass(MVT::f32, PPC64::FPRCRegisterClass);
|
||||||
|
|
Loading…
Reference in New Issue