From 8d8c507bbfa5b2587c0b750875cd1f54f68e6b1a Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Mon, 31 Mar 2014 20:54:58 +0000 Subject: Change shouldSplitVectorElementType to better match the description. Pass the entire vector type, and not just the element. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205247 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/NVPTX/NVPTXISelLowering.cpp | 4 ++-- lib/Target/NVPTX/NVPTXISelLowering.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Target/NVPTX') diff --git a/lib/Target/NVPTX/NVPTXISelLowering.cpp b/lib/Target/NVPTX/NVPTXISelLowering.cpp index e89dd17efc..8e25a657af 100644 --- a/lib/Target/NVPTX/NVPTXISelLowering.cpp +++ b/lib/Target/NVPTX/NVPTXISelLowering.cpp @@ -331,8 +331,8 @@ const char *NVPTXTargetLowering::getTargetNodeName(unsigned Opcode) const { } } -bool NVPTXTargetLowering::shouldSplitVectorElementType(EVT VT) const { - return VT == MVT::i1; +bool NVPTXTargetLowering::shouldSplitVectorType(EVT VT) const { + return VT.getScalarType() == MVT::i1; } SDValue diff --git a/lib/Target/NVPTX/NVPTXISelLowering.h b/lib/Target/NVPTX/NVPTXISelLowering.h index 66e708fcea..c1e8c21958 100644 --- a/lib/Target/NVPTX/NVPTXISelLowering.h +++ b/lib/Target/NVPTX/NVPTXISelLowering.h @@ -141,7 +141,7 @@ public: // PTX always uses 32-bit shift amounts virtual MVT getScalarShiftAmountTy(EVT LHSTy) const { return MVT::i32; } - virtual bool shouldSplitVectorElementType(EVT VT) const; + virtual bool shouldSplitVectorType(EVT VT) const override; private: const NVPTXSubtarget &nvptxSubtarget; // cache the subtarget here -- cgit v1.2.3