Vectorize: Remove implicit ilist iterator conversions, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 19 Oct 2015 22:06:09 +0000 (22:06 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 19 Oct 2015 22:06:09 +0000 (22:06 +0000)
commitf792618d1c05c8f152a9901937529b101730b774
tree5b506c2668a6493b03254b947d999d111528ac9d
parent3b75c0484a47712cec877ec9f2cd47c35b27093d
Vectorize: Remove implicit ilist iterator conversions, NFC

Besides the usual, I finally added an overload to
`BasicBlock::splitBasicBlock()` that accepts an `Instruction*` instead
of `BasicBlock::iterator`.  Someone can go back and remove this overload
later (after updating the callers I'm going to skip going forward), but
the most common call seems to be
`BB->splitBasicBlock(BB->getTerminator(), ...)` and I'm not sure it's
better to add `->getIterator()` to every one than have the overload.
It's pretty hard to get the usage wrong.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250745 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/BasicBlock.h
lib/Transforms/Vectorize/BBVectorize.cpp
lib/Transforms/Vectorize/LoopVectorize.cpp
lib/Transforms/Vectorize/SLPVectorizer.cpp