[llvm-commits] PATCH: Move the global-copy-to-alloca optimization to InstCombine

Chandler Carruth chandlerc at gmail.com
Mon Aug 20 02:27:14 PDT 2012


Hello,

I've been hacking on SROA a lot (email coming up on that front..) and one
of the oddities is that SROA is doing a very instcombine-like optimization.
I was able to move it over to InstCombine w/o touching any other aspect of
SROA. It simplifies the model of SROA a bit, and also the optimization
works much better in the instcombine framework: this is about nuking one
instruction, and replacing it with another.

Look good?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120820/37fb32dd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: move-global-copy-opt-to-instcombine.patch
Type: application/octet-stream
Size: 33169 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120820/37fb32dd/attachment.obj>


More information about the llvm-commits mailing list