Instead of having CollectSubexpr's categorize operands as interesting or
authorDan Gohman <gohman@apple.com>
Mon, 16 Aug 2010 15:50:00 +0000 (15:50 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 16 Aug 2010 15:50:00 +0000 (15:50 +0000)
commit3e22b7c91698f55b9053e88a168bd9e2eed71c9b
tree175622469949dc54eb9e7dbc1f389a23029d811f
parent4065f609128ea4cdfa575f48b816d1cc64e710e0
Instead of having CollectSubexpr's categorize operands as interesting or
uninteresting, just put all the operands on one list and make
GenerateReassociations make the decision about what's interesting.
This is simpler, and it avoids an extra ScalarEvolution::getAddExpr call.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111133 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp