KILL instructions are sometimes present and prevented hard
clauses from being formed.
Fix this by ignoring all meta instructions in clauses.
Paths
| Differential D106042
[AMDGPU] Ignore KILLs when forming clauses ClosedPublic Authored by sebastian-ne on Jul 15 2021, 12:31 AM.
Details
Summary KILL instructions are sometimes present and prevented hard Fix this by ignoring all meta instructions in clauses.
Diff Detail
Event TimelineHerald added subscribers: kerbowa, hiraditya, t-tye and 6 others. · View Herald TranscriptJul 15 2021, 12:31 AM
sebastian-ne marked an inline comment as done. Comment ActionsThanks for the review. You’re right about the too large clauses.
Comment Actions I think this looks fine, thanks. A possible alternative approach would be to put something like this at the start of emitClause: while (getHardClauseType(CI.Last) == HARDCLAUSE_INTERNAL) --CI.Last;
This revision is now accepted and ready to land.Jul 15 2021, 6:30 AM
sebastian-ne marked 3 inline comments as done. Comment ActionsFix review comments
sebastian-ne added a parent revision: D110055: [AsmPrinter] Loop over bundles in generic code.Sep 20 2021, 2:27 AM
This revision was landed with ongoing or failed builds.Sep 27 2021, 7:35 AM Closed by commit rGbf980930e5a7: [AMDGPU] Ignore KILLs when forming clauses (authored by sebastian-ne). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 375254 llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
llvm/lib/Target/AMDGPU/SIInsertHardClauses.cpp
llvm/test/CodeGen/AMDGPU/gfx-callable-argument-types.ll
llvm/test/CodeGen/AMDGPU/hard-clauses.mir
|
I don't see a reason to emit a comment for these. Kills for example already have a comment for them