[LLVMdev] Stack alignment on X86 AVX seems incorrect

Anton Korobeynikov anton at korobeynikov.info
Fri Mar 2 03:57:58 PST 2012


Joerg,

> At least for 32bit x86 reserving another register as alternative frame
> pointer is very heavy. The above would allow normal spill logic to
> decide when to keep a reference in register and when not. It also reuses
> existing functionality as much as possible.
It does not seem to be enough. Even is there are *no* allocas in the
function the stack realignment might still be necessary, for example
due to spill of vector register.
So, we'll need to decide very late whether we'll need realignment or not.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list