diff --git a/src/mapleall/maple_be/include/cg/cgfunc.h b/src/mapleall/maple_be/include/cg/cgfunc.h index b678bf79e4e626a785d85bd043dfc58b30ceba42..05bbeca25b6e3af2861f01918d057396c0128c5b 100644 --- a/src/mapleall/maple_be/include/cg/cgfunc.h +++ b/src/mapleall/maple_be/include/cg/cgfunc.h @@ -1104,8 +1104,8 @@ class CGFunc { return useFP; } - void UnsetSeenFP() { - seenFP = false; + void SetSeenFP(bool seen) { + seenFP = seen; } bool SeenFP() const { 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 f3b666c4f17c2b3b3169ec5a3da6a1ddd3d6c9d0..77a5a439d77203ce660da0d0f420d58585159fda 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 @@ -4980,9 +4980,7 @@ bool GraphColorRegAllocator::AllocateRegisters() { MarkCalleeSaveRegs(); - if (!seenFP) { - cgFunc->UnsetSeenFP(); - } + cgFunc->SetSeenFP(seenFP); if (GCRA_DUMP) { cgFunc->DumpCGIR(); }