gallivm: Disable frame-pointer-omission on x86 to ensure right stack alignment.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 31 Oct 2014 22:58:52 +0000 (22:58 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 3 Nov 2014 14:47:00 +0000 (14:47 +0000)
commitbfd453f94256a674194bc5f273db2260821c6c18
tree1ecf37c3e0e55d4708827ba9e74cfe0d11ce2000
parentb7e447d323872415ae21e2411b366770fb3687c1
gallivm: Disable frame-pointer-omission on x86 to ensure right stack alignment.

Between release 3.2 and 3.3 LLVM stopped aligning properly when certain
conditions (no allocas, but large number of vectors causing spills to
the stack, and frame pointer omission enabled).

We were already disabling frame-pointer-omission on several build types,
but we now disable it on all build types.

It's not clear whether this affects 32-bits x86 processes only, or if it
can also affect 64-bits x86_64 processes when AVX registers are
available and used.  So disable frame-pointer-omission on both
x86/x86_64 to be on the safe side.

See also:
- http://llvm.org/PR21435

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp