[llvm] [AMDGPU] Add a debug option `-amdgpu-snop-padding` for `GCNHazardRecognizer` (PR #146587)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 1 19:50:20 PDT 2025
================
@@ -300,7 +305,8 @@ unsigned GCNHazardRecognizer::PreEmitNoops(MachineInstr *MI) {
unsigned W = PreEmitNoopsCommon(MI);
fixHazards(MI);
CurrCycleInstr = nullptr;
- return W;
+ unsigned NopPad = NopPadding.getNumOccurrences() ? NopPadding : 0;
----------------
arsenm wrote:
Can just use the raw value? Don't see why you need to check getNumOccurrences
https://github.com/llvm/llvm-project/pull/146587
More information about the llvm-commits
mailing list