JonPsson1 wrote: I wonder why the LOAD_STACK_GUARD_ADDRESS MI is needed at all? It seems the only purpose it has is to provide an ADDR64 register to emit an address in AsmPrinter. Wouldn't it be better to add an extra ADDR64 use operand to the MOVE_STACK_GUARD / COMPARE_STACK_GUARD pseudos, which should make a physreg allocated for it, which could then be used in emitLoadStackGuardAddress(). That way it would never be loaded into a vreg and risk being spilled.
https://github.com/llvm/llvm-project/pull/169317 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
