[LLVMdev] AVX spill alignment

Jakob Stoklund Olesen stoklund at 2pi.dk
Thu Sep 1 14:01:45 PDT 2011


On Sep 1, 2011, at 1:58 PM, Cameron McInally wrote:

> Ah, thanks. That seems easy enough. 
> 
> Sorry to be pedantic, but does that snippet also handle cases where the frame pointer, %rbp, needs to be 32-byte aligned when dynamic allocas are present?

If spill slots or other stack variables require higher alignment than the ABI guarantees, dynamic stack realignment code should be inserted in the prolog.

The logic to control this is quite complicated, so you may want to verify that it actually works.

/jakob




More information about the llvm-dev mailing list