diff options
author | Scott Michel <scottm@aero.org> | 2008-03-10 15:42:14 +0000 |
---|---|---|
committer | Scott Michel <scottm@aero.org> | 2008-03-10 15:42:14 +0000 |
commit | 5b8f82e35b51bf007de07a7ca9347d804084ddf8 (patch) | |
tree | 64c14c0f5887248e27ce10d793b5530b6eedb91c /lib/Target/X86/X86ISelLowering.cpp | |
parent | 0404cd97e4f6ebfe4f8057d4e21119d77654dff2 (diff) |
Give TargetLowering::getSetCCResultType() a parameter so that ISD::SETCC's
return ValueType can depend its operands' ValueType.
This is a cosmetic change, no functionality impacted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48145 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86ISelLowering.cpp')
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 087c981b03..7b3b98f743 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -57,7 +57,6 @@ X86TargetLowering::X86TargetLowering(TargetMachine &TM) // X86 is weird, it always uses i8 for shift amounts and setcc results. setShiftAmountType(MVT::i8); - setSetCCResultType(MVT::i8); setSetCCResultContents(ZeroOrOneSetCCResult); setSchedulingPreference(SchedulingForRegPressure); setShiftAmountFlavor(Mask); // shl X, 32 == shl X, 0 @@ -728,6 +727,13 @@ X86TargetLowering::X86TargetLowering(TargetMachine &TM) setPrefLoopAlignment(16); } + +MVT::ValueType +X86TargetLowering::getSetCCResultType(const SDOperand &) const { + return MVT::i8; +} + + /// getMaxByValAlign - Helper for getByValTypeAlignment to determine /// the desired ByVal argument alignment. static void getMaxByValAlign(const Type *Ty, unsigned &MaxAlign) { |