[LoopVectorize] Address post-commit feedback on r250032
authorJames Molloy <james.molloy@arm.com>
Mon, 9 Nov 2015 14:32:05 +0000 (14:32 +0000)
committerJames Molloy <james.molloy@arm.com>
Mon, 9 Nov 2015 14:32:05 +0000 (14:32 +0000)
commitae263d48b03ca2f9eb94c11a236d998ff3453619
tree18d7366fc438a1e5181ec6580ce0548ee36d8824
parent9517cbd9fb02691cba4e279b8bf0ced8697897f8
[LoopVectorize] Address post-commit feedback on r250032

Implemented as many of Michael's suggestions as were possible:
  * clang-format the added code while it is still fresh.
  * tried to change Value* to Instruction* in many places in computeMinimumValueSizes - unfortunately there are several places where Constants need to be handled so this wasn't possible.
  * Reduce the pass list on loop-vectorization-factors.ll.
  * Fix a bug where we were querying MinBWs for I->getOperand(0) but using MinBWs[I].

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252469 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/VectorUtils.cpp
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/AArch64/loop-vectorization-factors.ll