Fix LSR best register search algorithm.
authorEvgeny Stupachenko <evstupac@gmail.com>
Wed, 30 Nov 2016 22:23:51 +0000 (22:23 +0000)
committerEvgeny Stupachenko <evstupac@gmail.com>
Wed, 30 Nov 2016 22:23:51 +0000 (22:23 +0000)
commit0c4300fac7e011c5b3072a005a68c4f8ce2e639f
tree007aeef2beba78d123ac683609f108ebdc01d116
parentc52fe2961c63b659dddc09ed747f3c358961074a
Fix LSR best register search algorithm.

Summary:
Fix a case when first register in a search has maximum
RegUses.getUsedByIndices(Reg).count()

Reviewers: qcolombet

Differential Revision: http://reviews.llvm.org/D26877

From: Evgeny Stupachenko <evstupac@gmail.com>
llvm-svn: 288278
llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp