[SLSR] handles non-canonicalized Mul candidates
authorJingyue Wu <jingyue@google.com>
Wed, 13 May 2015 00:03:17 +0000 (00:03 +0000)
committerJingyue Wu <jingyue@google.com>
Wed, 13 May 2015 00:03:17 +0000 (00:03 +0000)
commit3062272092b5922aaeb60eabc8997b4c92e49673
tree10bd22f0766f7b92ff57b95cdb54f0a428064c39
parentead2d1fbe08460fbdbf2fefa38ffa8e477d553d9
[SLSR] handles non-canonicalized Mul candidates

such as (2 + B) * S.

Tested by @non_canonicalized in slsr-mul.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237216 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
test/Transforms/StraightLineStrengthReduce/slsr-mul.ll