aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBlockPlacement.cpp
diff options
context:
space:
mode:
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>2017-04-12 13:13:15 +0000
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>2017-04-12 13:13:15 +0000
commit592dbea779378edbeee811cee9facfa355a6b5d3 (patch)
tree746cd1cf5359337ed27a1bbc1756e848542b807f /llvm/lib/CodeGen/MachineBlockPlacement.cpp
parent3b97ea39e76af6edfcf38075c75ff8d87e989d84 (diff)
downloadllvm-592dbea779378edbeee811cee9facfa355a6b5d3.zip
llvm-592dbea779378edbeee811cee9facfa355a6b5d3.tar.gz
llvm-592dbea779378edbeee811cee9facfa355a6b5d3.tar.bz2
[LoopVectorizer] Improve handling of branches during cost estimation.
The cost for a branch after vectorization is very different depending on if the vectorizer will if-convert the block (branch is eliminated), or if scalarized and predicated blocks will be produced (branch duplicated before each block). There is also the case of remaining scalar branches, such as the back-edge branch. This patch handles these cases differently with TTI based cost estimates. Review: Matthew Simpson https://reviews.llvm.org/D31175 llvm-svn: 300058
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp')
0 files changed, 0 insertions, 0 deletions