[PATCH] D18366: Factor PrologEpilogInserter around spilling, frame finalization, and scavenging
Derek Schuff via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 29 17:05:32 PDT 2016
dschuff added a comment.
Here's a stab in that direction (just for CSR spilling, we'd do the same kind of thing for scavenging before actually landing it).
There are several changes:
- Pass instantiation gets a TargetMachine so it can decide whether the target wants virtual registers. We'd need to add some kind of target hook for that.
- SpillCalleeSavedRegisters becomes a function pointer that does nothing, or the usual thing. This version of the patch makes it a non-member function and passes the data it needs explicitly (before it was just setting member variables). I'm on the fence about whether that's better; I like that it's easier to see the dependencies, but it's 5 arguments to pass around.
http://reviews.llvm.org/D18366
More information about the llvm-commits
mailing list