From 87c3f4ec276cd0b699b72603bb2745b6040ff7f9 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Fri, 14 Aug 2026 22:52:06 +0800 Subject: [GlobalISel] Legalize G_ABDS and G_ABDU --- backend/include/rcc/CodeGen/GlobalISel/LegalizerInfo.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'backend/include/rcc/CodeGen/GlobalISel/LegalizerInfo.h') diff --git a/backend/include/rcc/CodeGen/GlobalISel/LegalizerInfo.h b/backend/include/rcc/CodeGen/GlobalISel/LegalizerInfo.h index 2981f8e..5deefd4 100644 --- a/backend/include/rcc/CodeGen/GlobalISel/LegalizerInfo.h +++ b/backend/include/rcc/CodeGen/GlobalISel/LegalizerInfo.h @@ -184,6 +184,10 @@ public: [[nodiscard]] virtual GenericOpcode getExtOpcodeForWideningConstant(LowLevelType SmallType) const; + [[nodiscard]] virtual bool isSExtCheaperThanZExt(LowLevelType, LowLevelType) const { + return false; + } + // This hook performs read-only target checks before a lowering mutation is committed. [[nodiscard]] virtual Expected validateLowering(const MachineInstr &, const MachineFunction &, -- cgit v1.2.3