[PATCH] D13511: [mips] Use correct frame register for DWARF info when dynamically realigning the stack.

Vasileios Kalintiris via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 14 09:08:31 PDT 2015


vkalintiris added a comment.

In http://reviews.llvm.org/D13511#265867, @dean wrote:

> In general, the assembly looks somewhat optimised. This makes a bit harder to debug the code. Is there something that can be mitigated to obtain a more direct and contiguous correspondence between the original source and the assembly?


I can't think of anything other than trying to use lower optimization levels.

> Finally, just as curiosity, is there any particular reason you are creating the expression for all the locals as $sp + offset, instead of setting the frame base to the $sp?


When we use dynamic stack realignment we have to use $sp for only locals and $fp for incoming params, ie. conceptually the $fp is really the frame base register. This matches the behaviour of the other targets that I checked too.


http://reviews.llvm.org/D13511





More information about the llvm-commits mailing list