[llvm-branch-commits] [llvm-branch] r165153 - in /llvm/branches/R600/lib/Target/AMDGPU: R600ISelLowering.cpp R600ISelLowering.h
Tom Stellard
thomas.stellard at amd.com
Wed Oct 3 13:49:30 PDT 2012
Author: tstellar
Date: Wed Oct 3 15:49:30 2012
New Revision: 165153
URL: http://llvm.org/viewvc/llvm-project?rev=165153&view=rev
Log:
R600: Implement getSetCCResultType in R600TargetLowering class
Modified:
llvm/branches/R600/lib/Target/AMDGPU/R600ISelLowering.cpp
llvm/branches/R600/lib/Target/AMDGPU/R600ISelLowering.h
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=165153&r1=165152&r2=165153&view=diff
==============================================================================
--- llvm/branches/R600/lib/Target/AMDGPU/R600ISelLowering.cpp (original)
+++ llvm/branches/R600/lib/Target/AMDGPU/R600ISelLowering.cpp Wed Oct 3 15:49:30 2012
@@ -716,6 +716,13 @@
return Chain;
}
+EVT R600TargetLowering::getSetCCResultType(EVT VT) const {
+ if (VT.isVector()) {
+ return VT;
+ }
+ return MVT::i32;
+}
+
//===----------------------------------------------------------------------===//
// Custom DAG Optimizations
//===----------------------------------------------------------------------===//
Modified: llvm/branches/R600/lib/Target/AMDGPU/R600ISelLowering.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/R600/lib/Target/AMDGPU/R600ISelLowering.h?rev=165153&r1=165152&r2=165153&view=diff
==============================================================================
--- llvm/branches/R600/lib/Target/AMDGPU/R600ISelLowering.h (original)
+++ llvm/branches/R600/lib/Target/AMDGPU/R600ISelLowering.h Wed Oct 3 15:49:30 2012
@@ -38,6 +38,7 @@
const SmallVectorImpl<ISD::InputArg> &Ins,
DebugLoc DL, SelectionDAG &DAG,
SmallVectorImpl<SDValue> &InVals) const;
+ virtual EVT getSetCCResultType(EVT VT) const;
private:
const R600InstrInfo * TII;
More information about the llvm-branch-commits
mailing list