[llvm] [AMDGPU] Refactor GFX11 VALU Mask Hazard Waitcnt Merging (PR #169213)
Carl Ritson via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 14 03:10:02 PDT 2026
================
@@ -3556,15 +3556,14 @@ bool GCNHazardRecognizer::fixVALUMaskWriteHazard(MachineInstr *MI) {
};
SmallVector<const MachineInstr *> WaitInstrs;
- bool HasSGPRRead = false;
StateType InitialState;
// Look for SGPR write.
MachineOperand *HazardDef = nullptr;
- for (MachineOperand &Op : MI->operands()) {
+ for (MachineOperand &Op : MI->all_defs()) {
if (!Op.isReg())
continue;
- if (Op.isDef() && HazardDef)
+ if (HazardDef)
continue;
----------------
perlfu wrote:
Done, and address the assert below
https://github.com/llvm/llvm-project/pull/169213
More information about the llvm-commits
mailing list