[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)
commitbc0b869be9827992cd1aef3812b81825ab1dca1b
treecd9c537ed9c90e7c6676b0bf36bd0836c524fe65
parent7de210bd5246cb45a601d6c85645838f7585d70d
[Reassociate] As the expression tree is rewritten make sure the operands are
emitted in canonical form.

llvm-svn: 222142
17 files changed:
llvm/lib/Transforms/Scalar/Reassociate.cpp
llvm/test/Transforms/Reassociate/2002-05-15-MissedTree.ll
llvm/test/Transforms/Reassociate/2002-05-15-SubReassociate.ll
llvm/test/Transforms/Reassociate/basictest.ll
llvm/test/Transforms/Reassociate/canonicalize-neg-const.ll
llvm/test/Transforms/Reassociate/commute.ll
llvm/test/Transforms/Reassociate/fast-SubReassociate.ll
llvm/test/Transforms/Reassociate/fast-basictest.ll
llvm/test/Transforms/Reassociate/fast-fp-commute.ll
llvm/test/Transforms/Reassociate/fast-multistep.ll
llvm/test/Transforms/Reassociate/mixed-fast-nonfast-fp.ll
llvm/test/Transforms/Reassociate/multistep.ll
llvm/test/Transforms/Reassociate/no-op.ll
llvm/test/Transforms/Reassociate/optional-flags.ll
llvm/test/Transforms/Reassociate/shift-factor.ll
llvm/test/Transforms/Reassociate/subtest.ll
llvm/test/Transforms/Reassociate/xor_reassoc.ll