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 | a6729e8666de208c27ed5608689b4336eeff8f8c (patch) | |
| tree | ee374e530dd9b2d3505b5ab389a7080bd7eba8cb /llvm/lib/Target/Alpha/AlphaISelLowering.cpp | |
| parent | afa02ed5fb72a6110a658cb45081d730d68a998d (diff) | |
| download | bcm5719-llvm-a6729e8666de208c27ed5608689b4336eeff8f8c.tar.gz bcm5719-llvm-a6729e8666de208c27ed5608689b4336eeff8f8c.zip | |
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.
llvm-svn: 48145
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaISelLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/Alpha/AlphaISelLowering.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaISelLowering.cpp b/llvm/lib/Target/Alpha/AlphaISelLowering.cpp index 368c736a7da..87f1eec1370 100644 --- a/llvm/lib/Target/Alpha/AlphaISelLowering.cpp +++ b/llvm/lib/Target/Alpha/AlphaISelLowering.cpp @@ -40,7 +40,6 @@ AlphaTargetLowering::AlphaTargetLowering(TargetMachine &TM) : TargetLowering(TM) // Set up the TargetLowering object. //I am having problems with shr n ubyte 1 setShiftAmountType(MVT::i64); - setSetCCResultType(MVT::i64); setSetCCResultContents(ZeroOrOneSetCCResult); setUsesGlobalOffsetTable(true); @@ -151,6 +150,11 @@ AlphaTargetLowering::AlphaTargetLowering(TargetMachine &TM) : TargetLowering(TM) computeRegisterProperties(); } +MVT::ValueType +AlphaTargetLowering::getSetCCResultType(const SDOperand &) const { + return MVT::i64; +} + const char *AlphaTargetLowering::getTargetNodeName(unsigned Opcode) const { switch (Opcode) { default: return 0; |

