[llvm] r211947 - [NVPTX] Handle all possible vector types in getSetCCResultType, not just the ones representable as MVTs

Justin Holewinski jholewinski at nvidia.com
Fri Jun 27 11:36:09 PDT 2014


Author: jholewinski
Date: Fri Jun 27 13:36:08 2014
New Revision: 211947

URL: http://llvm.org/viewvc/llvm-project?rev=211947&view=rev
Log:
[NVPTX] Handle all possible vector types in getSetCCResultType, not just the ones representable as MVTs

Modified:
    llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.h

Modified: llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.h?rev=211947&r1=211946&r2=211947&view=diff
==============================================================================
--- llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.h (original)
+++ llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.h Fri Jun 27 13:36:08 2014
@@ -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;
   }
 





More information about the llvm-commits mailing list