[LLVMdev] 16bit loads being promoted to 32bit?
Micah.Villmow at amd.com
Fri Feb 13 11:21:50 CST 2009
Thanks that worked. ;)
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
On Behalf Of Eli Friedman
Sent: Thursday, February 12, 2009 5:52 PM
To: LLVM Developers Mailing List
Subject: Re: [LLVMdev] 16bit loads being promoted to 32bit?
On Thu, Feb 12, 2009 at 4:53 PM, Villmow, Micah <Micah.Villmow at amd.com>
> problem that I am having is somewhere along the line the 16bit load is
> promoted to a 32bit load
For the given testcase, that's clearly illegal. Either there's a
serious bug in LLVM, or you're misinterpreting the meaning of the DAG.
Are you sure you aren't seeing a sign-extending load? If you don't
want to bother supporting extending loads, you can use
setLoadExtAction to make Legalize take care of it.
> 1) I'm limited to 32bit aligned loads and llvm is assuming a
> 16bit/8bit alignment
You shouldn't be seeing any unaligned loads post-Legalize unless you
explicitly ask for them by setting allowUnalignedMemoryAccesses to
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the LLVMdev