[NVPTX] Handle all possible vector types in getSetCCResultType, not just the ones representable as MVTs
llvm-svn: 211947
This commit is contained in:
parent
2739c0175c
commit
a8071856a6
|
|
@ -202,9 +202,9 @@ public:
|
|||
/// getFunctionAlignment - Return the Log2 alignment of this function.
|
||||
unsigned getFunctionAlignment(const Function *F) const;
|
||||
|
||||
EVT getSetCCResultType(LLVMContext &, EVT VT) const override {
|
||||
EVT getSetCCResultType(LLVMContext &Ctx, EVT VT) const override {
|
||||
if (VT.isVector())
|
||||
return MVT::getVectorVT(MVT::i1, VT.getVectorNumElements());
|
||||
return EVT::getVectorVT(Ctx, MVT::i1, VT.getVectorNumElements());
|
||||
return MVT::i1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue