[LLVMdev] stackrestore

Chris Lattner clattner at apple.com
Wed Sep 30 08:10:59 PDT 2009


On Sep 30, 2009, at 2:04 AM, Marc Brünink wrote:

> Hi,
>
> is there a convenient way to get all allocations popped from the stack
> by llvm.stackrestore? Is this even decidable at compile time?

Nope, you can (theoretically) have arbitrary control flow between the  
save and restore.  In practice, VLAs are very structured, so this only  
happens if the code has allocas mixed in with VLAs.

-Chris



More information about the llvm-dev mailing list