aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-cov/SourceCoverageViewText.cpp
diff options
context:
space:
mode:
authorHiroshi Inoue <inouehrs@jp.ibm.com>2017-09-28 08:38:19 +0000
committerHiroshi Inoue <inouehrs@jp.ibm.com>2017-09-28 08:38:19 +0000
commit79c0bec06ee471b41b97d17c7fb6297f15eb2b19 (patch)
treef1832cbe66031d884edc2aa96929336ec557c257 /llvm/tools/llvm-cov/SourceCoverageViewText.cpp
parent9d3f12501a4594421a8d07053dd9dbaa652c7418 (diff)
downloadllvm-79c0bec06ee471b41b97d17c7fb6297f15eb2b19.zip
llvm-79c0bec06ee471b41b97d17c7fb6297f15eb2b19.tar.gz
llvm-79c0bec06ee471b41b97d17c7fb6297f15eb2b19.tar.bz2
[PowerPC] eliminate partially redundant compare instruction
This is a follow-on of D37211. D37211 eliminates a compare instruction if two conditional branches can be made based on the one compare instruction, e.g. if (a == 0) { ... } else if (a < 0) { ... } This patch extends this optimization to support partially redundant cases, which often happen in while loops. For example, one compare instruction is moved from the loop body into the preheader by this optimization in the following example. do { if (a == 0) dummy1(); a = func(a); } while (a > 0); Differential Revision: https://reviews.llvm.org/D38236 llvm-svn: 314390
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageViewText.cpp')
0 files changed, 0 insertions, 0 deletions