diff options
| author | Duncan Sands <baldrick@free.fr> | 2008-06-08 20:54:56 +0000 |
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2008-06-08 20:54:56 +0000 |
| commit | 11dd42453935c5f92bf7b4501c863a9e399031ef (patch) | |
| tree | 932fcffde0f3ef41f1349d489a7b29044c3822cd /llvm/lib/Target/Alpha/AlphaISelLowering.cpp | |
| parent | b4866ef30c291ef73bcb7e574e07a72b5362da04 (diff) | |
| download | bcm5719-llvm-11dd42453935c5f92bf7b4501c863a9e399031ef.tar.gz bcm5719-llvm-11dd42453935c5f92bf7b4501c863a9e399031ef.zip | |
Remove comparison methods for MVT. The main cause
of apint codegen failure is the DAG combiner doing
the wrong thing because it was comparing MVT's using
< rather than comparing the number of bits. Removing
the < method makes this mistake impossible to commit.
Instead, add helper methods for comparing bits and use
them.
llvm-svn: 52098
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaISelLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/Alpha/AlphaISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaISelLowering.cpp b/llvm/lib/Target/Alpha/AlphaISelLowering.cpp index 494eddada19..86fc4886fdb 100644 --- a/llvm/lib/Target/Alpha/AlphaISelLowering.cpp +++ b/llvm/lib/Target/Alpha/AlphaISelLowering.cpp @@ -356,7 +356,7 @@ AlphaTargetLowering::LowerCallTo(SDOperand Chain, const Type *RetTy, std::vector<MVT> RetVals; MVT RetTyVT = getValueType(RetTy); MVT ActualRetTyVT = RetTyVT; - if (RetTyVT >= MVT::i1 && RetTyVT <= MVT::i32) + if (RetTyVT.getSimpleVT() >= MVT::i1 && RetTyVT.getSimpleVT() <= MVT::i32) ActualRetTyVT = MVT::i64; if (RetTyVT != MVT::isVoid) |

