[Reassociate] Canonicalize constants to RHS operand.
authorChad Rosier <mcrosier@codeaurora.org>
Mon, 17 Nov 2014 15:52:51 +0000 (15:52 +0000)
committerChad Rosier <mcrosier@codeaurora.org>
Mon, 17 Nov 2014 15:52:51 +0000 (15:52 +0000)
commitae3738f4a797263eab7bac04d5e65ef7c23b0ca6
treededcb2080c0e4af12beeeeea79b7b5a564615c90
parent6e61dd242b17415b3df63e7518c9e5cce4e9bcf4
[Reassociate] Canonicalize constants to RHS operand.

Fix a thinko where the RHS was already a constant.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222139 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/Reassociate.cpp
test/Transforms/Reassociate/canonicalize-neg-const.ll
test/Transforms/Reassociate/fast-AgressiveSubMove.ll
test/Transforms/Reassociate/fast-fp-commute.ll