aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Basic/FileManagerTest.cpp
diff options
context:
space:
mode:
authorMax Kazantsev <max.kazantsev@azul.com>2018-11-19 05:54:38 +0000
committerMax Kazantsev <max.kazantsev@azul.com>2018-11-19 05:54:38 +0000
commit8e3e33d1384466523c25d4493842e0de61d3e19f (patch)
tree78f27f47f4bdc3c5f6373fe4a3600ec2319e64ac /clang/unittests/Basic/FileManagerTest.cpp
parente7b789b5293b179b7972d6d3d6b85e010f221e66 (diff)
downloadllvm-8e3e33d1384466523c25d4493842e0de61d3e19f.zip
llvm-8e3e33d1384466523c25d4493842e0de61d3e19f.tar.gz
llvm-8e3e33d1384466523c25d4493842e0de61d3e19f.tar.bz2
[LoopSimplifyCFG] Teach LoopSimplifyCFG to constant-fold branches and switches
This patch introduces infrastructure and the simplest case for constant-folding of branch and switch instructions within loop into unconditional branches. It is useful as a cleanup for such passes as loop unswitching that sometimes produce such branches. Only the simplest case supported in this patch: after the folding, no block should become dead or stop being part of the loop. Support for more sophisticated cases will go separately in follow-up patches. Differential Revision: https://reviews.llvm.org/D54021 Reviewed By: anna llvm-svn: 347183
Diffstat (limited to 'clang/unittests/Basic/FileManagerTest.cpp')
0 files changed, 0 insertions, 0 deletions