llvm-6502/lib/Transforms/Scalar
Chandler Carruth abd2555e36 [SROA] Compute the New{Begin,End}Offset values once for each alloca
slice being rewritten.

We had the same code scattered across most of the visits. Instead,
compute the new offsets and the slice size once when we start to visit
a particular slice, and use the member variables from then on. This
reduces quite a bit of code duplication.

No functionality changed. Refactoring inspired to make it easier to
apply the address space patch to SROA.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202227 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-26 04:20:00 +00:00
..
ADCE.cpp
CMakeLists.txt [CodeGenPrepare] Move CodeGenPrepare into lib/CodeGen. 2014-02-22 00:07:45 +00:00
ConstantHoisting.cpp Fix typos 2014-02-25 04:21:15 +00:00
ConstantProp.cpp Make DataLayout a plain object, not a pass. 2014-02-25 17:30:31 +00:00
CorrelatedValuePropagation.cpp
DCE.cpp
DeadStoreElimination.cpp Factor out calls to AA.getDataLayout(). 2014-02-25 15:52:19 +00:00
EarlyCSE.cpp Make DataLayout a plain object, not a pass. 2014-02-25 17:30:31 +00:00
FlattenCFGPass.cpp
GlobalMerge.cpp Rename many DataLayout variables from TD to DL. 2014-02-21 00:06:31 +00:00
GVN.cpp Make DataLayout a plain object, not a pass. 2014-02-25 17:30:31 +00:00
IndVarSimplify.cpp Make DataLayout a plain object, not a pass. 2014-02-25 17:30:31 +00:00
JumpThreading.cpp Make DataLayout a plain object, not a pass. 2014-02-25 17:30:31 +00:00
LICM.cpp Make DataLayout a plain object, not a pass. 2014-02-25 17:30:31 +00:00
LLVMBuild.txt
LoopDeletion.cpp
LoopIdiomRecognize.cpp Make DataLayout a plain object, not a pass. 2014-02-25 17:30:31 +00:00
LoopInstSimplify.cpp Make DataLayout a plain object, not a pass. 2014-02-25 17:30:31 +00:00
LoopRerollPass.cpp Make DataLayout a plain object, not a pass. 2014-02-25 17:30:31 +00:00
LoopRotation.cpp
LoopStrengthReduce.cpp
LoopUnrollPass.cpp
LoopUnswitch.cpp
LowerAtomic.cpp
Makefile
MemCpyOptimizer.cpp Make DataLayout a plain object, not a pass. 2014-02-25 17:30:31 +00:00
PartiallyInlineLibCalls.cpp
Reassociate.cpp [reassociate] Switch two std::sort calls into std::stable_sort calls as 2014-02-25 21:54:50 +00:00
Reg2Mem.cpp
SampleProfile.cpp Include <cctype> for isdigit(). 2014-02-22 06:34:10 +00:00
Scalar.cpp [CodeGenPrepare] Move CodeGenPrepare into lib/CodeGen. 2014-02-22 00:07:45 +00:00
Scalarizer.cpp Make DataLayout a plain object, not a pass. 2014-02-25 17:30:31 +00:00
ScalarReplAggregates.cpp Make DataLayout a plain object, not a pass. 2014-02-25 17:30:31 +00:00
SCCP.cpp Make DataLayout a plain object, not a pass. 2014-02-25 17:30:31 +00:00
SimplifyCFGPass.cpp Make DataLayout a plain object, not a pass. 2014-02-25 17:30:31 +00:00
Sink.cpp
SROA.cpp [SROA] Compute the New{Begin,End}Offset values once for each alloca 2014-02-26 04:20:00 +00:00
StructurizeCFG.cpp
TailRecursionElimination.cpp