diff options
author | Duncan Sands <baldrick@free.fr> | 2009-01-01 15:52:00 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-01-01 15:52:00 +0000 |
commit | 5480c0469e5c0323ffb12f1ead2abd169d6cc0e7 (patch) | |
tree | 1898f427b35c6795171701138e08762cd3aff3c1 /lib/Target/Alpha | |
parent | 8fb520eb4f06d4ef771abe9c22d85b2a275988ee (diff) | |
download | external_llvm-5480c0469e5c0323ffb12f1ead2abd169d6cc0e7.zip external_llvm-5480c0469e5c0323ffb12f1ead2abd169d6cc0e7.tar.gz external_llvm-5480c0469e5c0323ffb12f1ead2abd169d6cc0e7.tar.bz2 |
Fix PR3274: when promoting the condition of a BRCOND node,
promote from i1 all the way up to the canonical SetCC type.
In order to discover an appropriate type to use, pass
MVT::Other to getSetCCResultType. In order to be able to
do this, change getSetCCResultType to take a type as an
argument, not a value (this is also more logical).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61542 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha')
-rw-r--r-- | lib/Target/Alpha/AlphaISelLowering.cpp | 2 | ||||
-rw-r--r-- | lib/Target/Alpha/AlphaISelLowering.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Alpha/AlphaISelLowering.cpp b/lib/Target/Alpha/AlphaISelLowering.cpp index 7b0fcca..793d475 100644 --- a/lib/Target/Alpha/AlphaISelLowering.cpp +++ b/lib/Target/Alpha/AlphaISelLowering.cpp @@ -159,7 +159,7 @@ AlphaTargetLowering::AlphaTargetLowering(TargetMachine &TM) : TargetLowering(TM) computeRegisterProperties(); } -MVT AlphaTargetLowering::getSetCCResultType(const SDValue &) const { +MVT AlphaTargetLowering::getSetCCResultType(MVT VT) const { return MVT::i64; } diff --git a/lib/Target/Alpha/AlphaISelLowering.h b/lib/Target/Alpha/AlphaISelLowering.h index a29a518..cebd3ac 100644 --- a/lib/Target/Alpha/AlphaISelLowering.h +++ b/lib/Target/Alpha/AlphaISelLowering.h @@ -67,7 +67,7 @@ namespace llvm { explicit AlphaTargetLowering(TargetMachine &TM); /// getSetCCResultType - Get the SETCC result ValueType - virtual MVT getSetCCResultType(const SDValue &) const; + virtual MVT getSetCCResultType(MVT VT) const; /// LowerOperation - Provide custom lowering hooks for some operations. /// |