aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-niter.h
diff options
context:
space:
mode:
authorJu-Zhe Zhong <juzhe.zhong@rivai.ai>2022-12-24 11:08:00 +0800
committerKito Cheng <kito.cheng@sifive.com>2022-12-27 23:29:24 +0800
commit681a5632e0afaa24cc2a3d50a30be08d27dbfd35 (patch)
treefdd8a5fd752d14b0fdccc3dfa9e5082df17fc2de /gcc/tree-ssa-loop-niter.h
parent12b23c718cd29924a18e8cdd6790a9c04801c5f5 (diff)
downloadgcc-681a5632e0afaa24cc2a3d50a30be08d27dbfd35.zip
gcc-681a5632e0afaa24cc2a3d50a30be08d27dbfd35.tar.gz
gcc-681a5632e0afaa24cc2a3d50a30be08d27dbfd35.tar.bz2
RISC-V: Fix ICE of visiting non-existing block in CFG.
This patch is to fix issue of visiting non-existing block of CFG. Since blocks index of CFG in GCC are not always contiguous, we will potentially visit a gap block which is no existing in the current CFG. This patch can avoid visiting non existing block in CFG. I noticed such issue in my internal regression of current testsuite when I change the X86 server machine. This patch fix it: 17:27:15 job(build_and_test_rv32): Increased FAIL List: 17:27:15 job(build_and_test_rv32): FAIL: gcc.target/riscv/rvv/vsetvl/vlmax_back_prop-46.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error: Segmentation fault) gcc/ChangeLog: * config/riscv/riscv-vsetvl.cc (pass_vsetvl::compute_global_backward_infos): Change to visit CFG. (pass_vsetvl::prune_expressions): Ditto.
Diffstat (limited to 'gcc/tree-ssa-loop-niter.h')
0 files changed, 0 insertions, 0 deletions