[llvm] [Statepoint] Optimize Location structure size (PR #78600)

Danila Malyutin via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 18 07:37:23 PST 2024


================
@@ -497,27 +513,6 @@ void StackMaps::recordStackMapOpers(const MCSymbol &MILabel,
     while (MOI != MOE)
       MOI = parseOperand(MOI, MOE, Locations, LiveOuts);
 
-  // Move large constants into the constant pool.
-  for (auto &Loc : Locations) {
----------------
danilaml wrote:

Do this eagerly, that way we can reduce Offset size from 8 down to 4 bytes.

https://github.com/llvm/llvm-project/pull/78600


More information about the llvm-commits mailing list