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
..
2014-02-25 20:01:08 +00:00
2014-02-26 02:53:18 +00:00
2014-02-04 20:04:46 +00:00
2014-02-25 20:01:08 +00:00
2014-02-25 23:49:11 +00:00
2014-01-31 23:46:14 +00:00
2014-01-31 23:46:14 +00:00
2014-01-31 23:46:14 +00:00