aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/BasicTargetTransformInfo.cpp
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2013-07-07 06:57:07 +0000
committerNadav Rotem <nrotem@apple.com>2013-07-07 06:57:07 +0000
commit2041b742d4159d95b68a744b07ff2f2c0a78868d (patch)
treeb9ded3604a0171f17d7963edae1c5ee2e2d05b16 /llvm/lib/CodeGen/BasicTargetTransformInfo.cpp
parent8421a06314356a7e53819f9e13242bb5fb962141 (diff)
downloadllvm-2041b742d4159d95b68a744b07ff2f2c0a78868d.zip
llvm-2041b742d4159d95b68a744b07ff2f2c0a78868d.tar.gz
llvm-2041b742d4159d95b68a744b07ff2f2c0a78868d.tar.bz2
SLPVectorizer: Implement DCE as part of vectorization.
This is a complete re-write if the bottom-up vectorization class. Before this commit we scanned the instruction tree 3 times. First in search of merge points for the trees. Second, for estimating the cost. And finally for vectorization. There was a lot of code duplication and adding the DCE exposed bugs. The new design is simpler and DCE was a part of the design. In this implementation we build the tree once. After that we estimate the cost by scanning the different entries in the constructed tree (in any order). The vectorization phase also works on the built tree. llvm-svn: 185774
Diffstat (limited to 'llvm/lib/CodeGen/BasicTargetTransformInfo.cpp')
0 files changed, 0 insertions, 0 deletions