[llvm] [X86][GISel] Add missing legalization for G_IMPLICIT_DEF (PR #161699)

via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 3 04:01:51 PDT 2025


================
@@ -91,7 +91,27 @@ X86LegalizerInfo::X86LegalizerInfo(const X86Subtarget &STI,
   // s128 = EXTEND (G_IMPLICIT_DEF s32/s64) -> s128 = G_IMPLICIT_DEF
   getActionDefinitionsBuilder(G_IMPLICIT_DEF)
       .legalFor({p0, s1, s8, s16, s32, s64})
-      .legalFor(Is64Bit, {s128});
+      .legalFor(Is64Bit, {s128})
----------------
bonsthie wrote:

For now I will fuse them in the legalizer, and I’ll look to see how we can enforce this in the machine verifier.

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


More information about the llvm-commits mailing list