Teach reassociate to commute FMul's and FAdd's in order to canonicalize the order...
authorOwen Anderson <resistor@mac.com>
Mon, 7 May 2012 20:47:23 +0000 (20:47 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 7 May 2012 20:47:23 +0000 (20:47 +0000)
commit423f19f2dadee9325766008b63c1faf3c644043b
treec5d3cd7233f546183e248c5a7d53886bdbbad02a
parent754935418133ece1f51d1857a61d538797c34891
Teach reassociate to commute FMul's and FAdd's in order to canonicalize the order of their operands across instructions.  This allows for greater CSE opportunities.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156323 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/Reassociate.cpp
test/Transforms/Reassociate/fp-commute.ll [new file with mode: 0644]