[llvm] r209988 - R600: Set all float vector expands in the same place
Matt Arsenault
Matthew.Arsenault at amd.com
Sun Jun 1 00:38:22 PDT 2014
Author: arsenm
Date: Sun Jun 1 02:38:21 2014
New Revision: 209988
URL: http://llvm.org/viewvc/llvm-project?rev=209988&view=rev
Log:
R600: Set all float vector expands in the same place
Modified:
llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp
Modified: llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp?rev=209988&r1=209987&r2=209988&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp Sun Jun 1 02:38:21 2014
@@ -204,9 +204,6 @@ AMDGPUTargetLowering::AMDGPUTargetLoweri
setOperationAction(ISD::SELECT_CC, MVT::i64, Expand);
- setOperationAction(ISD::FNEG, MVT::v2f32, Expand);
- setOperationAction(ISD::FNEG, MVT::v4f32, Expand);
-
setOperationAction(ISD::UINT_TO_FP, MVT::i64, Custom);
setOperationAction(ISD::MUL, MVT::i64, Expand);
@@ -216,8 +213,6 @@ AMDGPUTargetLowering::AMDGPUTargetLoweri
setOperationAction(ISD::UDIVREM, MVT::i32, Custom);
setOperationAction(ISD::UDIVREM, MVT::i64, Custom);
setOperationAction(ISD::UREM, MVT::i32, Expand);
- setOperationAction(ISD::VSELECT, MVT::v2f32, Expand);
- setOperationAction(ISD::VSELECT, MVT::v4f32, Expand);
static const MVT::SimpleValueType IntTypes[] = {
MVT::v2i32, MVT::v4i32
@@ -261,7 +256,9 @@ AMDGPUTargetLowering::AMDGPUTargetLoweri
setOperationAction(ISD::FSQRT, VT, Expand);
setOperationAction(ISD::FSIN, VT, Expand);
setOperationAction(ISD::FSUB, VT, Expand);
+ setOperationAction(ISD::FNEG, VT, Expand);
setOperationAction(ISD::SELECT, VT, Expand);
+ setOperationAction(ISD::VSELECT, VT, Expand);
}
setTargetDAGCombine(ISD::MUL);
More information about the llvm-commits
mailing list