[LLVMdev] PR400 - alignment for LD/ST

Chris Lattner sabre at nondot.org
Mon Apr 2 11:58:09 PDT 2007

On Mon, 2 Apr 2007, Christopher Lamb wrote:
> I have changes in places to implement the bytecode/assembly/instruction 
> changes and propagate them through to SDNode creation in the back end. Woot.


> When a load or store instruction of alignment 0 (natural) is visited in 
> SelectionDAGLowering, should it create an SDNode of alignment 0 or should it 
> use the TargetData to set the SDNode's alignment to the preferred alignment 
> for the load/store's type for that particular target?

I think it should use the target's abi alignment (not preferred 
alignment).  This way, the codegen doesn't have to deal with alignment 




More information about the llvm-dev mailing list