[llvm] [AMDGPU][GlobalIsel] Use isRegisterClassType to check for legal types for G_FREEZE & G_IMPLICIT_DEF (PR #101331)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 1 07:41:21 PDT 2024


================
@@ -889,10 +890,13 @@ AMDGPULegalizerInfo::AMDGPULegalizerInfo(const GCNSubtarget &ST_,
     .clampScalar(0, S16, S64);
 
   getActionDefinitionsBuilder({G_IMPLICIT_DEF, G_FREEZE})
-      .legalIf(isRegisterType(0))
+      // s1 and s16 are special cases because they have legal operations on
+      // them, but don't really occupy registers in the normal way.
----------------
arsenm wrote:

Duplicated comment

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


More information about the llvm-commits mailing list