[llvm-commits] [llvm] r46349 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Duncan Sands baldrick at free.fr
Fri Jan 25 08:37:11 PST 2008


> > PS: Does an alignment of 0 mean the ABI alignment or the preferred
> > alignment?  I'm guessing that it means ABI for globals and
> > preferred for allocas.
> 
> In what context?

In any context :)  Basically I'm asking what it means if you pass an
alignment of 0 for an alloca (or a global).  For example, llvm-gcc
uses alignment 0 for an alloca if the ABI alignment equals the gcc
alignment.  But if the alloca gets the preferred alignment in the
end (at codegen time) and this differs from the ABI alignment, then
this would be wrong.

Ciao,

Duncan.



More information about the llvm-commits mailing list