mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
SplitBlockPredecessors uses ArrayRef instead of Data and Size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146277 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -565,8 +565,7 @@ void LoopUnswitch::SplitExitEdges(Loop *L,
|
||||
// Although SplitBlockPredecessors doesn't preserve loop-simplify in
|
||||
// general, if we call it on all predecessors of all exits then it does.
|
||||
if (!ExitBlock->isLandingPad()) {
|
||||
SplitBlockPredecessors(ExitBlock, Preds.data(), Preds.size(),
|
||||
".us-lcssa", this);
|
||||
SplitBlockPredecessors(ExitBlock, Preds, ".us-lcssa", this);
|
||||
} else {
|
||||
SmallVector<BasicBlock*, 2> NewBBs;
|
||||
SplitLandingPadPredecessors(ExitBlock, Preds, ".us-lcssa", ".us-lcssa",
|
||||
|
Reference in New Issue
Block a user