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

Chris Lattner clattner at apple.com
Fri Jan 25 08:17:21 PST 2008


On Jan 25, 2008, at 12:53 AM, Duncan Sands wrote:

>> Add skeletal code to increase the alignment of loads and stores when
>> we can infer it.  This will eventually help stuff, though it doesn't
>> do much right now because all fixed FI's have an alignment of 1.
>
> By the way, I've always assumed that alignment 0 is not used by the
> code generators, i.e. that IR alignment 0 gets turned into the
> preferred alignment for the target during lowering.  Is that right?
> (If not, all the alignment calculations for ptr+offset done in codegen
> are wrong).

Right, that is my understanding as well.  The 'infer alignment'  
function I stubbed out returns 0 as a sentinel that says it was unable  
to infer something useful.

-Chris



More information about the llvm-commits mailing list