[llvm] [AMDGPU] Fix soft clause hazards missed past the lookahead window (PR #220806)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 11 04:28:08 PDT 2026


================
@@ -1178,11 +1193,11 @@ int GCNHazardRecognizer::checkSoftClauseHazards(MachineInstr *MEM) const {
   if (MEM->mayStore())
     return 1;
 
-  addClauseInst(*MEM);
-
   // If the set of defs and uses intersect then we cannot add this instruction
   // to the clause, so we have a hazard.
-  return ClauseDefs.anyCommon(ClauseUses) ? 1 : 0;
+  BitVector Defs = ClauseDefs, Uses = ClauseUses;
----------------
arsenm wrote:

These bit vectors are big, can we avoid adding new copies of them 

https://github.com/llvm/llvm-project/pull/220806


More information about the llvm-commits mailing list