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
_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to