]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/110556 - tail merging still pre-tuples
authorRichard Biener <rguenther@suse.de>
Thu, 6 Jul 2023 11:51:55 +0000 (13:51 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 27 Nov 2023 10:26:28 +0000 (11:26 +0100)
commit34bb7282da434e43d29f35733121d8c08a7a1ae1
tree68d20e30405acb40c460fba1dec81a3a66c77e10
parentfe39ced331e76a85bb57b71b8acd9de9122bd91c
tree-optimization/110556 - tail merging still pre-tuples

The stmt comparison function for GIMPLE_ASSIGNs for tail merging
still looks like it deals with pre-tuples IL.  The following
attempts to fix this, not only comparing the first operand (sic!)
of stmts but all of them plus also compare the operation code.

PR tree-optimization/110556
* tree-ssa-tail-merge.cc (gimple_equal_p): Check
assign code and all operands of non-stores.

* gcc.dg/torture/pr110556.c: New testcase.

(cherry picked from commit 7b16686ef882ab141276f0e36a9d4ce1d755f64a)
gcc/testsuite/gcc.dg/torture/pr110556.c [new file with mode: 0644]
gcc/tree-ssa-tail-merge.cc