diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2021-11-10 16:49:50 +0100 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2021-11-10 16:51:30 +0100 |
commit | eaec20fde587e0695b100dcba5ff56944c3ae8c0 (patch) | |
tree | 6949722bd144c1aa8b897a41686a99f14ecdc162 /gcc/tree-vectorizer.c | |
parent | 5ba247ade1cc0ca06a0f7d3483b0520ba98bf2d2 (diff) | |
download | gcc-eaec20fde587e0695b100dcba5ff56944c3ae8c0.zip gcc-eaec20fde587e0695b100dcba5ff56944c3ae8c0.tar.gz gcc-eaec20fde587e0695b100dcba5ff56944c3ae8c0.tar.bz2 |
Grow sbr_vector in ranger's on-entry cache as needed.
The on-entry cache does not expect the number of BBs to change. This
could happen in various scenarios, recently in the suggestion to use
ranger with loop unswitching and also with a work in progress to use
the path solver in the loopch pass. This patch fixes both.
This is a patch from Andrew, who tested it on x86-64 Linux.
gcc/ChangeLog:
* gimple-range-cache.cc (sbr_vector::grow): New.
(sbr_vector::set_bb_range): Call grow.
(sbr_vector::get_bb_range): Same.
(sbr_vector::bb_range_p): Remove assert.
Diffstat (limited to 'gcc/tree-vectorizer.c')
0 files changed, 0 insertions, 0 deletions