[Reassociate] As the expression tree is rewritten make sure the operands are
authorChad Rosier <mcrosier@codeaurora.org>
Mon, 17 Nov 2014 16:33:50 +0000 (16:33 +0000)
committerChad Rosier <mcrosier@codeaurora.org>
Mon, 17 Nov 2014 16:33:50 +0000 (16:33 +0000)
commit14915fe52383c9141ab9aaea52109d86622c99f7
tree7fcb84332b7059f67c1494630bfc4f189ce14ac4
parent19e8fe05dcadb4ae31e1bcc3f0ff1cef3592ccb7
[Reassociate] As the expression tree is rewritten make sure the operands are
emitted in canonical form.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222142 91177308-0d34-0410-b5e6-96231b3b80d8
17 files changed:
lib/Transforms/Scalar/Reassociate.cpp
test/Transforms/Reassociate/2002-05-15-MissedTree.ll
test/Transforms/Reassociate/2002-05-15-SubReassociate.ll
test/Transforms/Reassociate/basictest.ll
test/Transforms/Reassociate/canonicalize-neg-const.ll
test/Transforms/Reassociate/commute.ll
test/Transforms/Reassociate/fast-SubReassociate.ll
test/Transforms/Reassociate/fast-basictest.ll
test/Transforms/Reassociate/fast-fp-commute.ll
test/Transforms/Reassociate/fast-multistep.ll
test/Transforms/Reassociate/mixed-fast-nonfast-fp.ll
test/Transforms/Reassociate/multistep.ll
test/Transforms/Reassociate/no-op.ll
test/Transforms/Reassociate/optional-flags.ll
test/Transforms/Reassociate/shift-factor.ll
test/Transforms/Reassociate/subtest.ll
test/Transforms/Reassociate/xor_reassoc.ll