summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
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
commitc46b6eb302d0514d8bc1eed7d6cb407069170b56 (patch)
tree7c3f792d00e13b1cdde93342b91ca43a851ded3a /llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
parent6a14c21dbffb455d8a879925e89086e034896467 (diff)
downloadbcm5719-llvm-c46b6eb302d0514d8bc1eed7d6cb407069170b56.tar.gz
bcm5719-llvm-c46b6eb302d0514d8bc1eed7d6cb407069170b56.zip
[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. llvm-svn: 202227
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud