diff options
author | Justin Holewinski <jholewinski@nvidia.com> | 2014-06-27 18:36:08 +0000 |
---|---|---|
committer | Justin Holewinski <jholewinski@nvidia.com> | 2014-06-27 18:36:08 +0000 |
commit | a8071856a61f1063e56a2efdfa113e47fa8adc48 (patch) | |
tree | 74c8675e49f982d85338600d2c644ea229837c06 /llvm/lib | |
parent | 2739c0175c7c4785345924c7c8bf3c29b38e9733 (diff) | |
download | bcm5719-llvm-a8071856a61f1063e56a2efdfa113e47fa8adc48.tar.gz bcm5719-llvm-a8071856a61f1063e56a2efdfa113e47fa8adc48.zip |
[NVPTX] Handle all possible vector types in getSetCCResultType, not just the ones representable as MVTs
llvm-svn: 211947
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/NVPTX/NVPTXISelLowering.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/NVPTX/NVPTXISelLowering.h b/llvm/lib/Target/NVPTX/NVPTXISelLowering.h index 358f9f8c80e..d311f681f3a 100644 --- a/llvm/lib/Target/NVPTX/NVPTXISelLowering.h +++ b/llvm/lib/Target/NVPTX/NVPTXISelLowering.h @@ -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; } |