[llvm-branch-commits] [llvm-branch] r166417 - /llvm/branches/R600/lib/Target/AMDGPU/R600ISelLowering.cpp

Tom Stellard thomas.stellard at amd.com
Mon Oct 22 08:04:12 PDT 2012


Author: tstellar
Date: Mon Oct 22 10:04:12 2012
New Revision: 166417

URL: http://llvm.org/viewvc/llvm-project?rev=166417&view=rev
Log:
R600: add support for vector setCC

Patch by: Vincent Lejeune

Modified:
    llvm/branches/R600/lib/Target/AMDGPU/R600ISelLowering.cpp

Modified: llvm/branches/R600/lib/Target/AMDGPU/R600ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/R600/lib/Target/AMDGPU/R600ISelLowering.cpp?rev=166417&r1=166416&r2=166417&view=diff
==============================================================================
--- llvm/branches/R600/lib/Target/AMDGPU/R600ISelLowering.cpp (original)
+++ llvm/branches/R600/lib/Target/AMDGPU/R600ISelLowering.cpp Mon Oct 22 10:04:12 2012
@@ -719,10 +719,8 @@
 }
 
 EVT R600TargetLowering::getSetCCResultType(EVT VT) const {
-  if (VT.isVector()) {
-    return VT;
-  }
-  return MVT::i32;
+   if (!VT.isVector()) return MVT::i32;
+   return VT.changeVectorElementTypeToInteger();
 }
 
 //===----------------------------------------------------------------------===//





More information about the llvm-branch-commits mailing list