[llvm-commits] [llvm] r91614 - in /llvm/trunk: include/llvm/CodeGen/ValueTypes.h lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Ken Dyck Ken.Dyck at onsemi.com
Wed Jan 6 09:33:32 PST 2010


On Wednesday, January 06, 2010 6:15 AM, Duncan Sands wrote:
>
> How about rewriting ExpandUnalignedStore so that it 
> works as follows.  First it finds the largest legal integer 
> type T with the given alignment (eg: i8 for alignment 1, i16 
> for alignment 2) that is smaller than the original type. 
>
> [snipped]
>

One suggestion. Instead of "the given alignment", how about "an
alignment that divides evenly into the given one"? That way it will do
something sensible (i.e. use i8) if a front-end specifies an alignment
with no exact matches.

-Ken




More information about the llvm-commits mailing list