mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-04 08:37:45 +00:00
TailDuplicator: Remove no-op analyzeBranch call
This could fail, which looked concerning. However nothing was actually using the results of this. I assume this was intended to use the anti-feature of analyzeBranch of removing instructions, but wasn't actually calling it with AllowModify = true. Fixes bug 42162. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362800 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
89e0c6cdc3
commit
49f4b27adf
@ -856,11 +856,6 @@ bool TailDuplicator::tailDuplicate(bool IsSimple, MachineBasicBlock *TailBB,
|
||||
}
|
||||
appendCopies(PredBB, CopyInfos, Copies);
|
||||
|
||||
// Simplify
|
||||
MachineBasicBlock *PredTBB = nullptr, *PredFBB = nullptr;
|
||||
SmallVector<MachineOperand, 4> PredCond;
|
||||
TII->analyzeBranch(*PredBB, PredTBB, PredFBB, PredCond);
|
||||
|
||||
NumTailDupAdded += TailBB->size() - 1; // subtract one for removed branch
|
||||
|
||||
// Update the CFG.
|
||||
|
Loading…
x
Reference in New Issue
Block a user