Use mark_ssa_maybe_undefs in PHI-OPT
commit11350734240dbaf9dfe498ad0b7759a23f101ecc
authorRichard Biener <rguenther@suse.de>
Tue, 4 Jul 2023 08:46:35 +0000 (4 10:46 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 4 Jul 2023 10:32:56 +0000 (4 12:32 +0200)
treee32ab74a733235311d6d431c92ca142754a4462f
parent6eea7eaf11e2b04670c4bb75f48600747dd76768
Use mark_ssa_maybe_undefs in PHI-OPT

The following removes gimple_uses_undefined_value_p and instead
uses the conservative mark_ssa_maybe_undefs in PHI-OPT, the last
user of the other API.

* tree-ssa-phiopt.cc (pass_phiopt::execute): Mark SSA undefs.
(empty_bb_or_one_feeding_into_p): Check for them.
* tree-ssa.h (gimple_uses_undefined_value_p): Remove.
* tree-ssa.cc (gimple_uses_undefined_value_p): Likewise.
gcc/tree-ssa-phiopt.cc
gcc/tree-ssa.cc
gcc/tree-ssa.h