From c3932f55208e3fe2019d26a0e5af421c0b644872 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Tue, 25 Aug 2026 02:38:56 +0800 Subject: [RISCV] Implement make-compressible pass --- backend/lib/CodeGen/MIRParser/MIRParser.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'backend/lib/CodeGen/MIRParser/MIRParser.cpp') diff --git a/backend/lib/CodeGen/MIRParser/MIRParser.cpp b/backend/lib/CodeGen/MIRParser/MIRParser.cpp index c7e92a0..944d0c9 100644 --- a/backend/lib/CodeGen/MIRParser/MIRParser.cpp +++ b/backend/lib/CodeGen/MIRParser/MIRParser.cpp @@ -276,6 +276,8 @@ bool MIRDocumentParser::parseFunction(const yaml::Node &Root, MIRDocument &Docum return importError(NameNode->range(), Created.error()); MachineFunction &Function = **Created; ActiveFunction = &Function; + if (IRFunction != nullptr && IRFunction->hasMinSize()) + Function.attributes().set(MachineFunctionAttribute::MinSize); MIRFunctionDocumentInfo DocumentInfo{ .Function = Function.stableID(), -- cgit v1.2.3