[llvm] [AMDGPU] Add flag to force emit s_nop (PR #117839)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 27 05:52:37 PST 2024
================
@@ -325,7 +330,9 @@ unsigned GCNHazardRecognizer::PreEmitNoops(MachineInstr *MI) {
unsigned W = PreEmitNoopsCommon(MI);
fixHazards(MI);
CurrCycleInstr = nullptr;
- return W;
+ unsigned NopPad =
+ NopPadding.getNumOccurrences() && !MI->isTerminator() ? NopPadding : 0;
----------------
shiltian wrote:
There can't be that between terminators.
https://github.com/llvm/llvm-project/pull/117839
More information about the llvm-commits
mailing list