[Mesa-dev] [PATCH 4/6] radeon/llvm: add support for vector setCC
Vincent Lejeune
vljn at ovi.com
Sun Oct 21 15:03:38 PDT 2012
---
lib/Target/AMDGPU/R600ISelLowering.cpp | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/lib/Target/AMDGPU/R600ISelLowering.cpp b/lib/Target/AMDGPU/R600ISelLowering.cpp
index 76cabae..d0711b8 100644
--- a/lib/Target/AMDGPU/R600ISelLowering.cpp
+++ b/lib/Target/AMDGPU/R600ISelLowering.cpp
@@ -719,10 +719,8 @@ SDValue R600TargetLowering::LowerFormalArguments(
}
EVT R600TargetLowering::getSetCCResultType(EVT VT) const {
- if (VT.isVector()) {
- return VT;
- }
- return MVT::i32;
+ if (!VT.isVector()) return MVT::i32;
+ return VT.changeVectorElementTypeToInteger();
}
//===----------------------------------------------------------------------===//
--
1.7.11.7
More information about the mesa-dev
mailing list