reassociate should do this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94374 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-01-24 20:17:09 +00:00
parent 10c4245103
commit 43dc2e6d76

View File

@ -175,7 +175,7 @@ _foo:
mulsd %xmm2, %xmm0
ret
Instcombine should be able to turn it into:
Reassociate should be able to turn it into:
double foo(double x, double y) {
return ((x + 0.1234 * y) * (x - 0.1234 * y));