]> 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>
Mon, 14 Apr 2025 19:14:49 +0000 (12:14 -0700)
commit16446f19f1313c57a312857026b6982aaa7241c7
treeb95dfc4a3fb17e8399b252aadb8f8b72a0662984
parentc2c1046b83a92283cd0863942efe9df453d78a78
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>
(cherry picked from commit edec4bfc99744b48da3ffde1e4f39c9aceecfd42)
gcc/config/aarch64/aarch64-early-ra.cc
gcc/testsuite/g++.dg/torture/pr116927-1.C [new file with mode: 0644]