summaryrefslogtreecommitdiff
path: root/lib/Bitcode
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-02-26 04:20:00 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-02-26 04:20:00 +0000
commitabd2555e365dc24ce71a1ef1afaf7d687d04a208 (patch)
tree6b58027ed801aaa994809830396d9637c3d36d02 /lib/Bitcode
parentca302abd2092f35a82db605a5c6a43875cba0a34 (diff)
downloadllvm-abd2555e365dc24ce71a1ef1afaf7d687d04a208.tar.gz
llvm-abd2555e365dc24ce71a1ef1afaf7d687d04a208.tar.bz2
llvm-abd2555e365dc24ce71a1ef1afaf7d687d04a208.tar.xz
[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
Diffstat (limited to 'lib/Bitcode')
0 files changed, 0 insertions, 0 deletions