[PATCH 2/2] R600/SI: FMA is faster than fmul and fadd for f64

Matt Arsenault Matthew.Arsenault at amd.com
Fri Aug 9 12:42:03 PDT 2013


On 08/09/2013 05:59 AM, Niels Ole Salscheider wrote:
> +bool SITargetLowering::isFMAFasterThanFMulAndFAdd(EVT VT) const {
> +  VT = VT.getScalarType();
> +
> +  if (!VT.isSimple())
> +    return false;
> +
> +  switch (VT.getSimpleVT().SimpleTy) {
> +  case MVT::f32:
> +    return false; /* There is V_MAD_F32 for f32 */
I don't think the f32 case is false for all devices.




More information about the llvm-commits mailing list