]> gcc.gnu.org Git - gcc.git/commit
Avoid fatal fails in predicate::init_from_control_deps
authorRichard Biener <rguenther@suse.de>
Wed, 31 Aug 2022 13:25:32 +0000 (15:25 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 31 Aug 2022 14:26:05 +0000 (16:26 +0200)
commita8ebd27d0ab69b08fd6e335bbb48a73a50202586
tree086082da28854ae07bca908e2bb16100b6a64ed1
parentcaaf9e66c498d9d6dc8be665d820ab45afa406ae
Avoid fatal fails in predicate::init_from_control_deps

When processing USE predicates we can drop from the AND chain,
when procsssing DEF predicates we can drop from the OR chain.  Do
that instead of giving up completely.  This also removes cases
that should never trigger.

* gimple-predicate-analysis.cc (predicate::init_from_control_deps):
Assert the guard_bb isn't empty and has more than one successor.
Drop appropriate parts of the predicate when an edge fails to
register a predicate.
(predicate::dump): Dump empty predicate as TRUE.
gcc/gimple-predicate-analysis.cc
This page took 0.056936 seconds and 5 git commands to generate.