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

Chris Lattner clattner at apple.com
Mon Aug 20 09:48:46 PDT 2012

On Aug 20, 2012, at 2:27 AM, Chandler Carruth <chandlerc at gmail.com> wrote:

> 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.

Makes sense to me.  Can pointsToConstantGlobal be simplified with Value::stripInBoundsOffsets ?


More information about the llvm-commits mailing list