forked from OSchip/llvm-project
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. llvm-svn: 362800
This commit is contained in:
parent
b2e96169b0
commit
94a609e343
|
@ -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…
Reference in New Issue