diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2021-07-19 14:02:57 -0400 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2021-07-22 08:51:59 -0400 |
commit | e58093276a6e319c2a6d9f02e343fbf8400dab60 (patch) | |
tree | 0eea3cdb0858c34d8b035492f47977a5563f74fd /gcc/gimple-range-fold.cc | |
parent | a6291d88d5b6c17d41950e21d7d452f7f0f73020 (diff) | |
download | gcc-e58093276a6e319c2a6d9f02e343fbf8400dab60.zip gcc-e58093276a6e319c2a6d9f02e343fbf8400dab60.tar.gz gcc-e58093276a6e319c2a6d9f02e343fbf8400dab60.tar.bz2 |
Only call vrp_visit_cond_stmt if range_of_stmt doesn't resolve to a const.
Eevntually all functionality will be subsumed. Until then, call it only
if needed.
gcc/
PR tree-optimization/101496
* vr-values.c (simplify_using_ranges::fold_cond): Call range_of_stmt
first, then vrp_visit_cond_Stmt.
gcc/testsuite
* gcc.dg/pr101496.c: New.
Diffstat (limited to 'gcc/gimple-range-fold.cc')
0 files changed, 0 insertions, 0 deletions