[LLVMdev] Duplicate loading of double constants

Eugene Toder eltoder at gmail.com
Mon Aug 19 19:16:59 PDT 2013


On Mon, Aug 19, 2013 at 8:50 PM, Nick Lewycky <nlewycky at google.com> wrote:
>
> Thanks. Please file a bug for this on llvm.org/bugs .
>
Done (PR16938).


> The crux of the problem is that machine CSE runs before register
> allocation and is consequently extremely conservative when doing CSE to
> avoid potentially increasing register pressure. Of course, with such a
> small testcase, register pressure isn't a problem. MachineCSE might be able
> to do a better job here.
>
> Nick
>
I figured it was trying to avoid adding register pressure, but shouldn't it
be more aggressive with constants? Isn't register allocator smart enough to
spill constants when it runs out of registers?

Also, what do you think on commuting addps in the second example?

Thanks,
Eugene
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130819/2acabbd0/attachment.html>


More information about the llvm-dev mailing list