]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/105484 - VEC_SET and EH
authorRichard Biener <rguenther@suse.de>
Thu, 5 May 2022 07:34:59 +0000 (09:34 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 5 May 2022 08:36:49 +0000 (10:36 +0200)
commite1a41143a2e24c65d94364fd82b165ff71a759d8
treecc4e56a30092275b6d77f7b127b918cab01176fd
parent938a02a589dc22cef65bba2b131fc9e4874baddb
tree-optimization/105484 - VEC_SET and EH

When the IL representation of VEC_SET is marked as throwing
(unnecessarily), we need to clean that when replacing it with
the .VEC_SET internal function call which cannot throw.

2022-05-05  Richard Biener  <rguenther@suse.de>

PR tree-optimization/105484
* gimple-isel.cc (gimple_expand_vec_set_expr): Clean EH, return
whether the CFG changed.
(gimple_expand_vec_exprs): When the CFG changed, clean it up.

* gcc.dg/torture/pr105484.c: New testcase.
gcc/gimple-isel.cc
gcc/testsuite/gcc.dg/torture/pr105484.c [new file with mode: 0644]