aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorMax Kazantsev <mkazantsev@azul.com>2021-06-28 11:39:46 +0700
committerMax Kazantsev <mkazantsev@azul.com>2021-06-28 11:39:46 +0700
commit7c73c2ede8088802adb8191d05cad09e3ad88539 (patch)
treee3a6292021f237e47300c9534cfbb429d1805952 /llvm/tools/llvm-objdump/llvm-objdump.cpp
parenteb237ffca821839374574b2195c865765ebf5d09 (diff)
downloadllvm-7c73c2ede8088802adb8191d05cad09e3ad88539.zip
llvm-7c73c2ede8088802adb8191d05cad09e3ad88539.tar.gz
llvm-7c73c2ede8088802adb8191d05cad09e3ad88539.tar.bz2
[LoopDeletion] Benefit from branches by undef conditions when symbolically executing 1st iteration
We can exploit branches by `undef` condition. Frankly, the LangRef says that such branches are UB, so we can assume that all outgoing edges of such blocks are dead. However, from practical perspective, we know that this is not supported correctly in some other places. So we are being conservative about it. Branch by undef is treated in the following way: - If it is a loop-exiting branch, we always assume it exits the loop; - If not, we arbitrarily assume it takes `true` value. Differential Revision: https://reviews.llvm.org/D104689 Reviewed By: nikic
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions