mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +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:
@ -926,8 +926,7 @@ bool JumpThreading::SimplifyPartiallyRedundantLoad(LoadInst *LI) {
|
||||
|
||||
// Split them out to their own block.
|
||||
UnavailablePred =
|
||||
SplitBlockPredecessors(LoadBB, &PredsToSplit[0], PredsToSplit.size(),
|
||||
"thread-pre-split", this);
|
||||
SplitBlockPredecessors(LoadBB, PredsToSplit, "thread-pre-split", this);
|
||||
}
|
||||
|
||||
// If the value isn't available in all predecessors, then there will be
|
||||
@ -1339,8 +1338,7 @@ bool JumpThreading::ThreadEdge(BasicBlock *BB,
|
||||
else {
|
||||
DEBUG(dbgs() << " Factoring out " << PredBBs.size()
|
||||
<< " common predecessors.\n");
|
||||
PredBB = SplitBlockPredecessors(BB, &PredBBs[0], PredBBs.size(),
|
||||
".thr_comm", this);
|
||||
PredBB = SplitBlockPredecessors(BB, PredBBs, ".thr_comm", this);
|
||||
}
|
||||
|
||||
// And finally, do it!
|
||||
@ -1484,8 +1482,7 @@ bool JumpThreading::DuplicateCondBranchOnPHIIntoPred(BasicBlock *BB,
|
||||
else {
|
||||
DEBUG(dbgs() << " Factoring out " << PredBBs.size()
|
||||
<< " common predecessors.\n");
|
||||
PredBB = SplitBlockPredecessors(BB, &PredBBs[0], PredBBs.size(),
|
||||
".thr_comm", this);
|
||||
PredBB = SplitBlockPredecessors(BB, PredBBs, ".thr_comm", this);
|
||||
}
|
||||
|
||||
// Okay, we decided to do this! Clone all the instructions in BB onto the end
|
||||
|
Reference in New Issue
Block a user