[PATCH] D32596: [InstCombine] Transform fmul X, +2.0 --> fadd X, X.

Chad Rosier via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 27 12:49:19 PDT 2017


mcrosier added a comment.

FWIW, I could also fix this in the DAG combiner.  The particular case I care about look like 'a * b - 2.0 * c', but the expression is transformed to 'a * c + -2.0 * c' before we hit the DAG Combine of interest (which only expects a +2.0).


https://reviews.llvm.org/D32596





More information about the llvm-commits mailing list