jingyue added a comment. Hal, I didn't change `TargetTransformInfoImplBase::getNumberOfRegisters` because many tests under `LoopVectorize` depends on `NoTTI` to have vector registers. http://reviews.llvm.org/D11108