summaryrefslogtreecommitdiff
path: root/libgo/go/time/format.go
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2021-09-05 16:53:31 +0200
committerAldy Hernandez <aldyh@redhat.com>2021-09-05 17:27:42 +0200
commita827909537cf085e5673ca7816b7bd7151d89fc5 (patch)
tree48dce970ace777673182e5ead546faec71f60370 /libgo/go/time/format.go
parent90ef15352701c6880faee83a46031d7837ab9d27 (diff)
Make the path solver's range_of_stmt() handle all statements.
The path solver's range_of_stmt() was handcuffed to only fold GIMPLE_COND statements, since those were the only statements the backward threader needed to resolve. However, there is no need for this restriction, as the folding code is perfectly capable of folding any statement. This can be the case when trying to fold other statements in the final block of a path (for instance, in the forward threader as it tries to fold candidate statements along a path). Tested on x86-64 Linux. gcc/ChangeLog: * gimple-range-path.cc (path_range_query::range_of_stmt): Remove GIMPLE_COND special casing. (path_range_query::range_defined_in_block): Use range_of_stmt instead of calling fold_range directly.
Diffstat (limited to 'libgo/go/time/format.go')
0 files changed, 0 insertions, 0 deletions