[vectorizer] Fix a trivial oversight where we always requested the
authorChandler Carruth <chandlerc@gmail.com>
Mon, 27 Jan 2014 11:12:14 +0000 (11:12 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 27 Jan 2014 11:12:14 +0000 (11:12 +0000)
commit3fa842d791ff114d13159282933c7c15c5579cd7
tree4de09be2412e99e311c663da438c4b2f2ad26ab3
parent4bfa6fecc1348f120e463138d4fb435b40d7b650
[vectorizer] Fix a trivial oversight where we always requested the
number of vector registers rather than toggling between vector and
scalar register number based on VF. I don't have a test case as
I spotted this by inspection and on X86 it only makes a difference if
your target is lacking SSE and thus has *no* vector registers.

If someone wants to add a test case for this for ARM or somewhere else
where this is more significant, that would be awesome.

Also made the variable name a bit more sensible while I'm here.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200211 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp