Hello,<div><br></div><div>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.</div>
<div><br></div><div>Look good?</div>