[PATCH][CodeGen, DAG-combine, fast-math] Disable some fast-math transformations in DAG-combiner after legalization

Nadav Rotem nrotem at apple.com
Mon Mar 25 15:33:07 PDT 2013


LGTM. 

On Mar 25, 2013, at 3:31 PM, Shuxin Yang <shuxin.llvm at gmail.com> wrote:

> Hi, There:
> 
>    The attached patch disable some unsafe-fp-math DAG-combine transformation after legalization.
> For instance, following transformation is disabled:
>     x + x + x => 3.0f * x;
> 
>   The problem of these transformations is that it introduces a FP constant, which
> following Instruction-Selection pass cannot handle.
> 
>    This patch is stress-tested by running SingleSource/MultiSource with
> EnableUnsafeFPMath (@include/llvm/CodeGen/CommandFlags.h) being hard-coded to true.
> 
> rdar://13445387
> 
> Thanks
> Shuxin
> <llc_unsafe_fp_math.patch>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130325/82c5ae45/attachment.html>


More information about the llvm-commits mailing list