aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-struct-field-expr.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2022-08-23 13:58:31 +0200
committerRichard Biener <rguenther@suse.de>2022-08-23 15:20:27 +0200
commitbaa3ffb19c54fa334ac2884f6acb5d31aa79ac32 (patch)
treee80aaddb11403cd82cba20563f4ce099557b5278 /gcc/rust/backend/rust-compile-struct-field-expr.cc
parentb25c5d6133d356a34aee72a24fd4cdec5637cc17 (diff)
downloadgcc-baa3ffb19c54fa334ac2884f6acb5d31aa79ac32.zip
gcc-baa3ffb19c54fa334ac2884f6acb5d31aa79ac32.tar.gz
gcc-baa3ffb19c54fa334ac2884f6acb5d31aa79ac32.tar.bz2
tree-optimization/106722 - uninit analysis with long def -> use path
The following applies similar measures as r13-2133-ge66cf626c72d58 to the computation of the use predicate when the path from PHI def to use is too long and we run into compute_control_dep_chain limits. It also moves the preprocessor define limits internal. This resolves the reduced testcase but not the original one. PR tree-optimization/106722 * gimple-predicate-analysis.h (MAX_NUM_CHAINS, MAX_CHAIN_LEN, MAX_POSTDOM_CHECK, MAX_SWITCH_CASES): Move ... * gimple-predicate-analysis.cc: ... here and document. (simple_control_dep_chain): New function, factored from predicate::use_cannot_happen. (predicate::use_cannot_happen): Adjust. (predicate::predicate): Use simple_control_dep_chain as fallback. * g++.dg/uninit-pr106722-1.C: New testcase.
Diffstat (limited to 'gcc/rust/backend/rust-compile-struct-field-expr.cc')
0 files changed, 0 insertions, 0 deletions