Skip to content

Commit

Permalink
[AMDGPU] Fix -Wunused-variable in non-assertion builds after llvm#109818
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay authored and bricknerb committed Oct 17, 2024
1 parent effaeee commit 53c3b2b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions llvm/lib/Target/AMDGPU/SIPreEmitPeephole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,7 @@ class BranchWeightCostModel {
bool SIPreEmitPeephole::mustRetainExeczBranch(
const MachineInstr &Branch, const MachineBasicBlock &From,
const MachineBasicBlock &To) const {

const MachineBasicBlock &Head = *Branch.getParent();
assert(is_contained(Head.successors(), &From));

assert(is_contained(Branch.getParent()->successors(), &From));
BranchWeightCostModel CostModel{*TII, Branch, From};

const MachineFunction *MF = From.getParent();
Expand Down

0 comments on commit 53c3b2b

Please sign in to comment.