[gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V: Use safe_grow_cleared for vector info [PR111649]
Jeff Law
law@gcc.gnu.org
Mon Oct 9 12:50:48 GMT 2023
https://gcc.gnu.org/g:cedf4aaf9fa679be105f98475d55bcbf562c19c8
commit cedf4aaf9fa679be105f98475d55bcbf562c19c8
Author: Patrick O'Neill <patrick@rivosinc.com>
Date: Sat Sep 30 15:50:11 2023 -0700
RISC-V: Use safe_grow_cleared for vector info [PR111649]
Resolves a riscv*-*-* bootstrap failure due to a newly-turned-on assert.
2023-09-30 Jakub Jelinek <jakub@redhat.com>
gcc/ChangeLog:
PR target/111649
* config/riscv/riscv-vsetvl.cc (vector_infos_manager::vector_infos_manager):
Replace safe_grow with safe_grow_cleared.
(cherry picked from commit 04e772bbdcbc1cea67cd498c1a45e4360bf5f8e1)
Diff:
---
gcc/config/riscv/riscv-vsetvl.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/config/riscv/riscv-vsetvl.cc b/gcc/config/riscv/riscv-vsetvl.cc
index af8c31d873c..4b06d93e7f9 100644
--- a/gcc/config/riscv/riscv-vsetvl.cc
+++ b/gcc/config/riscv/riscv-vsetvl.cc
@@ -2417,8 +2417,8 @@ vector_infos_manager::vector_infos_manager ()
vector_antin = nullptr;
vector_antout = nullptr;
vector_earliest = nullptr;
- vector_insn_infos.safe_grow (get_max_uid ());
- vector_block_infos.safe_grow (last_basic_block_for_fn (cfun));
+ vector_insn_infos.safe_grow_cleared (get_max_uid ());
+ vector_block_infos.safe_grow_cleared (last_basic_block_for_fn (cfun));
if (!optimize)
{
basic_block cfg_bb;
More information about the Gcc-cvs
mailing list