[llvm] r182108 - [Sparc] Implements hasReservedCallFrame and hasFP.

Venkatraman Govindaraju venkatra at cs.wisc.edu
Fri May 17 19:52:57 PDT 2013


On Fri, May 17, 2013 at 3:11 PM, Jakob Stoklund Olesen <stoklund at 2pi.dk> wrote:
>
> On May 17, 2013, at 8:14 AM, Venkatraman Govindaraju <venkatra at cs.wisc.edu> wrote:
>
>> Author: venkatra
>> Date: Fri May 17 10:14:34 2013
>> New Revision: 182108
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=182108&view=rev
>> Log:
>> [Sparc] Implements hasReservedCallFrame and hasFP.
>> This is to generate correct framesetup code when the function
>> has variable sized allocas.
>
> Just to be clear, SPARC currently ignores hasFP() and always creates a stack frame (save/restore), right?
>
  That's correct.

> Are you planning to support leaf functions without a frame? That would be neat.
>

 Yes, I am working on a leaf procedure optimization pass, which I
implemented as a MachineFunctionPass similar to delay slot filler.
See the attachment for the patch. It works for simple test cases, but
I have not thoroughly tested it yet. Also, there may be a better way
to do the leaf procedure optimization. Any suggestions are welcome. In
the coming weeks, I plan to work on it and commit it to the trunk.

Thanks
--Venkat

> /jakob
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sparc-leaf-proc.patch
Type: application/octet-stream
Size: 9840 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130517/a4e49a2b/attachment.obj>


More information about the llvm-commits mailing list