[PATCH] D15344: [WebAssembly] WIP for SP lowering.

Derek Schuff via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 9 09:26:00 PST 2015


dschuff added a comment.

In this version the SP32 physical register is used as the base for FrameIndex lowering. It and the @SP global var are updated in the prolog and epilog. An alternative would be just to use an arbitrary virtual register (which would be have to be stashed by the prolog e.g. in WebAssemblyRegisterInfo) but using SP seems easier to understand in the IR and not really any different in the final output.


http://reviews.llvm.org/D15344





More information about the llvm-commits mailing list