aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/gimple-parser.c
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2021-05-13 16:09:58 -0400
committerAldy Hernandez <aldyh@redhat.com>2021-05-17 18:18:37 +0200
commitce81282261c6c77883b17d0ebfbbe337bed76457 (patch)
treed53f50b5dd7ed93644b1598dec40f43bf8ddb3ac /gcc/c/gimple-parser.c
parente91a17fe39c39e98cebe6e1cbc8064ee6846a3a7 (diff)
downloadgcc-ce81282261c6c77883b17d0ebfbbe337bed76457.zip
gcc-ce81282261c6c77883b17d0ebfbbe337bed76457.tar.gz
gcc-ce81282261c6c77883b17d0ebfbbe337bed76457.tar.bz2
Bail in bounds_of_var_in_loop if scev returns NULL.
Both initial_condition_in_loop_num and evolution_part_in_loop_num can return NULL. This patch exits if either one is NULL. Presumably this didn't happen before, because adjust_range_with_scev was called far less frequently than in ranger, which can call it for every PHI. gcc/ChangeLog: PR tree-optimization/100349 * vr-values.c (bounds_of_var_in_loop): Bail if scev returns NULL. gcc/testsuite/ChangeLog: * gcc.dg/pr100349.c: New test.
Diffstat (limited to 'gcc/c/gimple-parser.c')
0 files changed, 0 insertions, 0 deletions