]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/116585 - SSA corruption with split_constant_offset
authorRichard Biener <rguenther@suse.de>
Wed, 18 Sep 2024 07:52:55 +0000 (09:52 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 18 Sep 2024 09:11:28 +0000 (11:11 +0200)
commit1d0cb3b5fca69b81e69cfdb4aea0eebc1ac04750
treecbd775ec8d3f5cfe36b6790fe56f709e41651993
parent45cacfe7325bdbed4a2393927812561f64b9afd1
tree-optimization/116585 - SSA corruption with split_constant_offset

split_constant_offset when looking through SSA defs can end up
picking SSA leafs that are subject to abnormal coalescing.  This
can lead to downstream consumers to insert code based on the
result (like from dataref analysis) in places that violate constraints
for abnormal coalescing.  It's best to not expand defs whose operands
are subject to abnormal coalescing - and not either do something when
a subexpression has operands like that already.

PR tree-optimization/116585
* tree-data-ref.cc (split_constant_offset_1): When either
operand is subject to abnormal coalescing do no further
processing.

* gcc.dg/torture/pr116585.c: New testcase.
gcc/testsuite/gcc.dg/torture/pr116585.c [new file with mode: 0644]
gcc/tree-data-ref.cc