mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Use SmallVectorImpl& instead of SmallVector to avoid repeating small vector size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186274 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -196,7 +196,7 @@ namespace {
|
||||
|
||||
/// Split all of the edges from inside the loop to their exit blocks.
|
||||
/// Update the appropriate Phi nodes as we do so.
|
||||
void SplitExitEdges(Loop *L, const SmallVector<BasicBlock *, 8> &ExitBlocks);
|
||||
void SplitExitEdges(Loop *L, const SmallVectorImpl<BasicBlock *> &ExitBlocks);
|
||||
|
||||
bool UnswitchIfProfitable(Value *LoopCond, Constant *Val);
|
||||
void UnswitchTrivialCondition(Loop *L, Value *Cond, Constant *Val,
|
||||
@ -752,7 +752,7 @@ void LoopUnswitch::UnswitchTrivialCondition(Loop *L, Value *Cond,
|
||||
/// SplitExitEdges - Split all of the edges from inside the loop to their exit
|
||||
/// blocks. Update the appropriate Phi nodes as we do so.
|
||||
void LoopUnswitch::SplitExitEdges(Loop *L,
|
||||
const SmallVector<BasicBlock *, 8> &ExitBlocks){
|
||||
const SmallVectorImpl<BasicBlock *> &ExitBlocks){
|
||||
|
||||
for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) {
|
||||
BasicBlock *ExitBlock = ExitBlocks[i];
|
||||
|
Reference in New Issue
Block a user