[LLVMdev] RFC: Missing canonicalization in LLVM
Chandler Carruth
chandlerc at google.com
Wed Jan 21 15:34:22 PST 2015
On Wed, Jan 21, 2015 at 3:02 PM, Hal Finkel <hfinkel at anl.gov> wrote:
> You still need to make sure, in many cases, that you load into the correct
> register file to avoid expensive cross-domain moves. So *something* need to
> look at the eventual users, either the IR-level optimizer or the backend.
> I'd prefer the IR-level optimizer if possible.
See my response to Pete, but in general this only applies in a case where
there is no use of the load other than a store. I already taught
instcombine to canonicalize loads which are *used* as floating point values
correctly.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150121/1f9f9564/attachment.html>
More information about the llvm-dev
mailing list