[llvm] r225728 - R600/SI: Remove redundant setting expand on f64 vectors

Matt Arsenault Matthew.Arsenault at amd.com
Mon Jan 12 15:13:00 PST 2015


Author: arsenm
Date: Mon Jan 12 17:13:00 2015
New Revision: 225728

URL: http://llvm.org/viewvc/llvm-project?rev=225728&view=rev
Log:
R600/SI: Remove redundant setting expand on f64 vectors

None of these are legal types already, so they default to
Expand.

Modified:
    llvm/trunk/lib/Target/R600/SIISelLowering.cpp

Modified: llvm/trunk/lib/Target/R600/SIISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/SIISelLowering.cpp?rev=225728&r1=225727&r2=225728&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/SIISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/R600/SIISelLowering.cpp Mon Jan 12 17:13:00 2015
@@ -203,13 +203,6 @@ SITargetLowering::SITargetLowering(Targe
     }
   }
 
-  for (int I = MVT::v1f64; I <= MVT::v8f64; ++I) {
-    MVT::SimpleValueType VT = static_cast<MVT::SimpleValueType>(I);
-    setOperationAction(ISD::FTRUNC, VT, Expand);
-    setOperationAction(ISD::FCEIL, VT, Expand);
-    setOperationAction(ISD::FFLOOR, VT, Expand);
-  }
-
   if (Subtarget->getGeneration() >= AMDGPUSubtarget::SEA_ISLANDS) {
     setOperationAction(ISD::FTRUNC, MVT::f64, Legal);
     setOperationAction(ISD::FCEIL, MVT::f64, Legal);





More information about the llvm-commits mailing list