OSDN Git Service

LSR cost metric minor fix and verification.
authorAndrew Trick <atrick@apple.com>
Mon, 26 Sep 2011 23:11:04 +0000 (23:11 +0000)
committerAndrew Trick <atrick@apple.com>
Mon, 26 Sep 2011 23:11:04 +0000 (23:11 +0000)
commit7d11bd850f97f499117704cd3e03d6a6cc1adcb3
tree517bee05efabe5046a96c8c0354f655194bd9853
parent21733e8f80ac3f50af16d11626f5c9aa1bb1e1c9
LSR cost metric minor fix and verification.

The minor bug heuristic was noticed by inspection. I added the
isLoser/isValid helpers because they will become more
important with subsequent checkins.

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