summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/FoldingSet.cpp
diff options
context:
space:
mode:
authorHaicheng Wu <haicheng@codeaurora.org>2016-05-24 22:16:14 +0000
committerHaicheng Wu <haicheng@codeaurora.org>2016-05-24 22:16:14 +0000
commit90a55651e6222d52da2ffbae87e3e25194a60afd (patch)
tree750ec1497906a50bdf85feee7b59626b54927cae /llvm/lib/Support/FoldingSet.cpp
parentf0ea2207a4f3b31d6c06db7039b3b07a6d128a2d (diff)
downloadbcm5719-llvm-90a55651e6222d52da2ffbae87e3e25194a60afd.tar.gz
bcm5719-llvm-90a55651e6222d52da2ffbae87e3e25194a60afd.zip
[MBP] Factor out the optimizations on branch conditions and unanalyzable branches. NFCI.
The benefits of this patch are -- We call AnalyzeBranch() to optimize unanalyzable branches, but the result of AnalyzeBranch() is not used. Now the result is useful. -- Before the layout of all the MBBs is set, the result of AnalyzeBranch() is not correct and needs to be fixed before using it to optimize the branch conditions. Now this optimization is called after the layout, the code used to fix the result of AnalyzeBranch() is not needed. -- The branch condition of the last block is not optimized before. Now it is optimized. Differential Revision: http://reviews.llvm.org/D20177 llvm-svn: 270623
Diffstat (limited to 'llvm/lib/Support/FoldingSet.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud