llvm.org GIT mirror llvm / 49f4b27
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 Matt Arsenault 5 months ago
1 changed file(s) with 0 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
855855 }
856856 appendCopies(PredBB, CopyInfos, Copies);
857857
858 // Simplify
859 MachineBasicBlock *PredTBB = nullptr, *PredFBB = nullptr;
860 SmallVector PredCond;
861 TII->analyzeBranch(*PredBB, PredTBB, PredFBB, PredCond);
862
863858 NumTailDupAdded += TailBB->size() - 1; // subtract one for removed branch
864859
865860 // Update the CFG.