[llvm-commits] [llvm] r167914 - /llvm/trunk/lib/Target/CellSPU/SPUISelLowering.cpp

Craig Topper craig.topper at gmail.com
Tue Nov 13 21:56:30 PST 2012


Author: ctopper
Date: Tue Nov 13 23:56:30 2012
New Revision: 167914

URL: http://llvm.org/viewvc/llvm-project?rev=167914&view=rev
Log:
Set FFLOOR for vectors to expand on CellSPU to keep instruction selection from failing on llvm.floor of a vector.

Modified:
    llvm/trunk/lib/Target/CellSPU/SPUISelLowering.cpp

Modified: llvm/trunk/lib/Target/CellSPU/SPUISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CellSPU/SPUISelLowering.cpp?rev=167914&r1=167913&r2=167914&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CellSPU/SPUISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/CellSPU/SPUISelLowering.cpp Tue Nov 13 23:56:30 2012
@@ -431,12 +431,13 @@
     setOperationAction(ISD::SREM,    VT, Expand);
     setOperationAction(ISD::UDIV,    VT, Expand);
     setOperationAction(ISD::UREM,    VT, Expand);
+    setOperationAction(ISD::FFLOOR,  VT, Expand);
 
     // Expand all trunc stores
     for (unsigned j = (unsigned)MVT::FIRST_VECTOR_VALUETYPE;
          j <= (unsigned)MVT::LAST_VECTOR_VALUETYPE; ++j) {
       MVT::SimpleValueType TargetVT = (MVT::SimpleValueType)j;
-    setTruncStoreAction(VT, TargetVT, Expand);
+      setTruncStoreAction(VT, TargetVT, Expand);
     }
 
     // Custom lower build_vector, constant pool spills, insert and





More information about the llvm-commits mailing list