mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
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
This commit is contained in:
@ -52,7 +52,6 @@ MipsTargetLowering(MipsTargetMachine &TM): TargetLowering(TM)
|
||||
{
|
||||
// Mips does not have i1 type, so use i32 for
|
||||
// setcc operations results (slt, sgt, ...).
|
||||
setSetCCResultType(MVT::i32);
|
||||
setSetCCResultContents(ZeroOrOneSetCCResult);
|
||||
|
||||
// JumpTable targets must use GOT when using PIC_
|
||||
@ -112,6 +111,12 @@ MipsTargetLowering(MipsTargetMachine &TM): TargetLowering(TM)
|
||||
}
|
||||
|
||||
|
||||
MVT::ValueType
|
||||
MipsTargetLowering::getSetCCResultType(const SDOperand &) const {
|
||||
return MVT::i32;
|
||||
}
|
||||
|
||||
|
||||
SDOperand MipsTargetLowering::
|
||||
LowerOperation(SDOperand Op, SelectionDAG &DAG)
|
||||
{
|
||||
|
Reference in New Issue
Block a user