llvm-6502/lib/Analysis/IPA
Wei Mi 8979e3f69b Correctly estimate SROA savings for store operands in inline cost analysis.
When 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 uses operand 0.  Use
getPointerOperand for loads and stores to fix this.

Patch by Easwaran Raman.
http://reviews.llvm.org/D8425


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232827 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-20 18:33:12 +00:00
..
CallGraph.cpp
CallGraphSCCPass.cpp removed function names from comments; NFC 2015-03-10 03:48:14 +00:00
CallPrinter.cpp
CMakeLists.txt
GlobalsModRef.cpp DataLayout is mandatory, update the API to reflect it with references. 2015-03-10 02:37:25 +00:00
InlineCost.cpp Correctly estimate SROA savings for store operands in inline cost analysis. 2015-03-20 18:33:12 +00:00
IPA.cpp
LLVMBuild.txt
Makefile