[PATCH] Fix a bug in SROA savings estimation.
chandlerc at gmail.com
Wed Mar 18 15:54:40 PDT 2015
On Wed, Mar 18, 2015 at 3:46 PM, Easwaran Raman <eraman at google.com> wrote:
> Hi chandlerc,
> While estimating SROA savings, we want to see if an address is derived off
> an alloca in the caller. For store instructions, operand 1 is the address
> operand, but the current code checks against operand 0. For clarity, I have
> used getPointerOperand for store and load instructions.
Uh.. wow. I mean, this makes sense, but needs a test case.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-commits