summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortstellar <tstellar@91177308-0d34-0410-b5e6-96231b3b80d8>2012-10-03 20:49:30 +0000
committertstellar <tstellar@91177308-0d34-0410-b5e6-96231b3b80d8>2012-10-03 20:49:30 +0000
commit26441db6da16704ad28318a5282e634608e01689 (patch)
tree9d1086cfe749346214a6aae6641c047e27f248bc
parent1e145cb14643d5835e4c3275d392cd161cad569e (diff)
R600: Implement getSetCCResultType in R600TargetLowering class
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/R600/@165153 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/AMDGPU/R600ISelLowering.cpp7
-rw-r--r--lib/Target/AMDGPU/R600ISelLowering.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/Target/AMDGPU/R600ISelLowering.cpp b/lib/Target/AMDGPU/R600ISelLowering.cpp
index 4ed5d0da5e7..c9a688965ec 100644
--- a/lib/Target/AMDGPU/R600ISelLowering.cpp
+++ b/lib/Target/AMDGPU/R600ISelLowering.cpp
@@ -716,6 +716,13 @@ SDValue R600TargetLowering::LowerFormalArguments(
return Chain;
}
+EVT R600TargetLowering::getSetCCResultType(EVT VT) const {
+ if (VT.isVector()) {
+ return VT;
+ }
+ return MVT::i32;
+}
+
//===----------------------------------------------------------------------===//
// Custom DAG Optimizations
//===----------------------------------------------------------------------===//
diff --git a/lib/Target/AMDGPU/R600ISelLowering.h b/lib/Target/AMDGPU/R600ISelLowering.h
index 7df2dd13787..1ecdcf386e9 100644
--- a/lib/Target/AMDGPU/R600ISelLowering.h
+++ b/lib/Target/AMDGPU/R600ISelLowering.h
@@ -38,6 +38,7 @@ public:
const SmallVectorImpl<ISD::InputArg> &Ins,
DebugLoc DL, SelectionDAG &DAG,
SmallVectorImpl<SDValue> &InVals) const;
+ virtual EVT getSetCCResultType(EVT VT) const;
private:
const R600InstrInfo * TII;