[llvm] r211377 - R600/SI: Add a pattern for f32 ftrunc

Matt Arsenault Matthew.Arsenault at amd.com
Fri Jun 20 10:30:01 PDT 2014


On 06/20/2014 10:06 AM, Tom Stellard wrote:
>       case AMDGPUIntrinsic::AMDIL_round_nearest: // Legacy name.
>         return DAG.getNode(ISD::FRINT, DL, VT, Op.getOperand(1));
> +    case AMDGPUIntrinsic::AMDGPU_trunc:
> +      return DAG.getNode(ISD::FTRUNC, DL, VT, Op.getOperand(1));
There's already llvm.trunc, so I assume this is another compatability 
intrinsic? Can you add that comment next to the case like the others?



More information about the llvm-commits mailing list