From b3e6e6a7f98f9af297cb07c4dea6cf7b8f2d0825 Mon Sep 17 00:00:00 2001 From: William Chen Date: Mon, 1 Nov 2021 00:47:47 -0700 Subject: [PATCH] increase const limit to ~ 13 bits for rematerialization --- src/mapleall/maple_be/src/cg/aarch64/aarch64_color_ra.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mapleall/maple_be/src/cg/aarch64/aarch64_color_ra.cpp b/src/mapleall/maple_be/src/cg/aarch64/aarch64_color_ra.cpp index 5c2afe7ea8..0ead8727fa 100644 --- a/src/mapleall/maple_be/src/cg/aarch64/aarch64_color_ra.cpp +++ b/src/mapleall/maple_be/src/cg/aarch64/aarch64_color_ra.cpp @@ -91,7 +91,7 @@ bool LiveRange::IsRematerializable(AArch64CGFunc &cgFunc, uint8 rematLevel) cons return false; } const MIRIntConst *intConst = static_cast(rematInfo.mirConst); - return intConst->GetValue() >= 0 && intConst->GetValue() <= 255; + return intConst->GetValue() >= -65538 && intConst->GetValue() <= 65537; } case OP_addrof: { if (rematLevel < rematAddr) { @@ -148,7 +148,6 @@ std::vector LiveRange::Rematerialize(AArch64CGFunc *cgFunc, CG *cg = cgFunc->GetCG(); switch (op) { case OP_constval: - break; switch (rematInfo.mirConst->GetKind()) { case kConstInt: { MIRIntConst *intConst = const_cast( -- Gitee