diff options
| author | Max Kazantsev <max.kazantsev@azul.com> | 2017-04-28 06:05:48 +0000 |
|---|---|---|
| committer | Max Kazantsev <max.kazantsev@azul.com> | 2017-04-28 06:05:48 +0000 |
| commit | 0589d9fa0fa27f9f5ffa78329697e8dc0ff34db9 (patch) | |
| tree | 1c09d044ee12bf471b9cc946f8325b932d563df0 /llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp | |
| parent | 10c6ba06d4dd8d97d8e022cfcad836882f55ab85 (diff) | |
| download | bcm5719-llvm-0589d9fa0fa27f9f5ffa78329697e8dc0ff34db9.tar.gz bcm5719-llvm-0589d9fa0fa27f9f5ffa78329697e8dc0ff34db9.zip | |
[EarlyCSE] Remove guards with conditions known to be true
If a condition is calculated only once, and there are multiple guards on this condition, we should be able
to remove all guards dominated by the first of them. This patch allows EarlyCSE to try to find the condition
of a guard among the known values, and if it is true, remove the guard. Otherwise we keep the guard and
mark its condition as 'true' for future consideration.
Reviewers: sanjoy, reames, apilipenko, skatkov, anna, dberlin
Reviewed By: reames, sanjoy
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D32476
llvm-svn: 301623
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp')
0 files changed, 0 insertions, 0 deletions

