[PATCH] D109228: [AMDGPU][GlobalISel] Legalize G_MUL for non-standard types

Mirko Brkusanin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 6 08:34:19 PDT 2021


mbrkusanin added inline comments.


================
Comment at: llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h:855
+    return actionIf(LegalizeAction::WidenScalar,
+                    all(scalarWiderThan(TypeIdx, MinSize),
+                        sizeNotMultipleOf(typeIdx(TypeIdx), Size)),
----------------
Should we have a separate rule widenScalarToNextMultipleOf****If**** so we can take out this scalarWiderThan check? We need this check for targets that can work with s16.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109228/new/

https://reviews.llvm.org/D109228



More information about the llvm-commits mailing list