Also see the discussion on https://bugs.llvm.org/show_bug.cgi?id=33031.
This patch contains 2 conceptual changes:
- Introducing option -reg-scavenging-always-use-spill-slot to enable writing maintainable tests for register scavenging.
- Fix the underlying reason for PR33031: correct the estimate of maximum offset for instructions spilling/filling the stack.
I think both conceptual changes are implemented in a somewhat non-ideal way here, but those are the best engineering tradeoffs I've found so far.
Do the trade-offs taken here seem acceptable?
unnecessary?