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

Chris Lattner clattner at apple.com
Tue Nov 13 22:17:18 PST 2012


On Nov 13, 2012, at 9:56 PM, Craig Topper <craig.topper at gmail.com> wrote:

> 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.

Hey, in the brave new world of LLVM 3.3... can we remove the CellSPU backend yet? :)

-Chris

> 
> 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
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list