]> git.ipfire.org Git - thirdparty/gcc.git/commit
forwprop: Allow mismatch clobbers in simple dse
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Mon, 24 Nov 2025 08:52:35 +0000 (00:52 -0800)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Mon, 24 Nov 2025 17:22:11 +0000 (09:22 -0800)
commit789ff802b5765949cc05c609fe6bafaf70880b8d
treee8636774b12e1e22ec3b66239fdb87a0c36c5301
parent73849aef07bd2954a80fbf1c8543d70db9beae6a
forwprop: Allow mismatch clobbers in simple dse

As mention in the patch that adds DSEing lhs of calls,
some testcases were xfailed due to exceptions and mismatch
of clobbers in some cases.
This allows them and un-xfails the testcase where they show
up.

Bootstrapped and tested on x86_64-linux-gnu.

gcc/ChangeLog:

* tree-ssa-forwprop.cc (do_simple_agr_dse): Allow
for mismatched clobbers.

gcc/testsuite/ChangeLog:

* g++.dg/tree-ssa/simple-dse-3.C: un-xfail.

Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
gcc/testsuite/g++.dg/tree-ssa/simple-dse-3.C
gcc/tree-ssa-forwprop.cc