Use gimple-match folding in fold_build_cond_expr
authorRichard Biener <rguenther@suse.de>
Tue, 10 May 2022 13:39:46 +0000 (15:39 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 10 May 2022 13:41:41 +0000 (15:41 +0200)
commit9801ca737b1dcbf51c0d07db59dd204a047dd3f7
tree9a07824e05d10fe7741daf132f01a2de1925aa59
parentda6305558bab9e24943848e4fc5bd8738d7e8f9b
Use gimple-match folding in fold_build_cond_expr

The following cleans up if-conversions fold_build_cond_expr to
use gimple-match folding instead of GENERIC folding.

2022-05-10  Richard Biener  <rguenther@suse.de>

* tree-if-conv.cc (fold_build_cond_expr): Use
match-and-simplify to simplify the condition.
(ifcvt_follow_ssa_use_edges): Remove.
(predicate_scalar_phi): Use follow_all_ssa_edges.
gcc/tree-if-conv.cc