]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: Fix early ra for -fno-delete-dead-exceptions [PR116927]
authorAndrew Pinski <quic_apinski@quicinc.com>
Wed, 2 Oct 2024 21:21:24 +0000 (14:21 -0700)
committerAndrew Pinski <quic_apinski@quicinc.com>
Thu, 3 Oct 2024 08:31:11 +0000 (01:31 -0700)
commitedec4bfc99744b48da3ffde1e4f39c9aceecfd42
treefaebf55a43c545dabda491f1a6960aaff3204e77
parentccb6e08a4d5a067513b3a10bbf0d76e28e1d4a8e
aarch64: Fix early ra for -fno-delete-dead-exceptions [PR116927]

Early-RA was considering throwing instructions as being dead and removing
them even if -fno-delete-dead-exceptions was in use. This fixes that oversight.

Built and tested for aarch64-linux-gnu.

PR target/116927

gcc/ChangeLog:

* config/aarch64/aarch64-early-ra.cc (early_ra::is_dead_insn): Insns
that throw are not dead with -fno-delete-dead-exceptions.

gcc/testsuite/ChangeLog:

* g++.dg/torture/pr116927-1.C: New test.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/config/aarch64/aarch64-early-ra.cc
gcc/testsuite/g++.dg/torture/pr116927-1.C [new file with mode: 0644]