[PATCH] Fix interference caused by fmul 2, x -> fadd x, x combine
Matthew.Arsenault at amd.com
Fri Jul 25 15:56:10 PDT 2014
This solves 2 variants of this problem. First, change the order things are tried so that fmul (fmul x, c1) c2 -> fmul x, (fmul c1, c2) before fadd x, x.
Also add a variant of the fmul constant combine that understands fadd x, x as a multiply by 2. This is necessary because a multiply by 2 that exists originally will be transformed into the fadd by one of the early runs of DAG combiner, and not folded with new fmuls inserted during lowering.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5642 bytes
Desc: not available
More information about the llvm-commits