We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b51bfb4 commit c0c30d1Copy full SHA for c0c30d1
llvm/lib/Target/AMDGPU/SIPreEmitPeephole.cpp
@@ -347,10 +347,7 @@ class BranchWeightCostModel {
347
bool SIPreEmitPeephole::mustRetainExeczBranch(
348
const MachineInstr &Branch, const MachineBasicBlock &From,
349
const MachineBasicBlock &To) const {
350
-
351
- const MachineBasicBlock &Head = *Branch.getParent();
352
- assert(is_contained(Head.successors(), &From));
353
+ assert(is_contained(Branch.getParent()->successors(), &From));
354
BranchWeightCostModel CostModel{*TII, Branch, From};
355
356
const MachineFunction *MF = From.getParent();
0 commit comments