diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2018-04-10 20:42:39 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2018-04-10 20:42:39 +0000 |
| commit | 3b6d46761f139e7ee3057758698efa4487323829 (patch) | |
| tree | c5120140dcb3fb41e319c1d78a36c4fc4cbd4f39 /llvm/tools/llvm-cov/gcov.cpp | |
| parent | d88041672269603f858ba24c1266bb743feb09d9 (diff) | |
| download | bcm5719-llvm-3b6d46761f139e7ee3057758698efa4487323829.tar.gz bcm5719-llvm-3b6d46761f139e7ee3057758698efa4487323829.zip | |
[CVP] simplify phi with constant incoming values that match common variable edge values
This is based on an example that was recently posted on llvm-dev:
void *propagate_null(void* b, int* g) {
if (!b) {
return 0;
}
(*g)++;
return b;
}
https://godbolt.org/g/xYk3qG
The original code or constant propagation in other passes has obscured the fact
that the phi can be removed completely.
Differential Revision: https://reviews.llvm.org/D45448
llvm-svn: 329755
Diffstat (limited to 'llvm/tools/llvm-cov/gcov.cpp')
0 files changed, 0 insertions, 0 deletions

