[llvm] [X86] Make use of `null_frag` (NFC) (PR #115601)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 9 05:06:14 PST 2024


https://github.com/s-barannikov created https://github.com/llvm/llvm-project/pull/115601

None

>From e4f9b073684b31f77dce783f1f59f0cad678dc14 Mon Sep 17 00:00:00 2001
From: Sergei Barannikov <barannikov88 at gmail.com>
Date: Sat, 9 Nov 2024 16:05:34 +0300
Subject: [PATCH] [X86] Make use of `null_frag` (NFC)

---
 llvm/lib/Target/X86/X86InstrUtils.td | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/llvm/lib/Target/X86/X86InstrUtils.td b/llvm/lib/Target/X86/X86InstrUtils.td
index 75bb08d35bd1e2..ab171ac79fb377 100644
--- a/llvm/lib/Target/X86/X86InstrUtils.td
+++ b/llvm/lib/Target/X86/X86InstrUtils.td
@@ -193,10 +193,8 @@ class X86TypeInfo<ValueType vt, string instrsuffix, RegisterClass regclass,
   bit HasREX_W = hasREX_W;
 }
 
-def invalid_node : SDNode<"<<invalid_node>>", SDTIntLeaf,[],"<<invalid_node>>">;
-
 def Xi8  : X86TypeInfo<i8, "b", GR8, loadi8, i8mem, Imm8, i8imm,
-                       imm_su, imm, i8imm, invalid_node, invalid_node,
+                       imm_su, imm, i8imm, null_frag, null_frag,
                        1, 0>;
 def Xi16 : X86TypeInfo<i16, "w", GR16, loadi16, i16mem, Imm16, i16imm,
                        imm_su, imm, i16i8imm, i16immSExt8_su, i16immSExt8,



More information about the llvm-commits mailing list