]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/117417 - ICE with complex load optimization
authorRichard Biener <rguenther@suse.de>
Tue, 12 Nov 2024 10:15:15 +0000 (11:15 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 12 Nov 2024 12:03:39 +0000 (13:03 +0100)
commitd976daa931642d940b7b27032ca6139210c07eed
tree84ba82a9698a58380b65e54a95a3527b08ecf320
parenta552a808f004c90d6f880f296041d674bdc27eda
tree-optimization/117417 - ICE with complex load optimization

When we decompose a complex load only used as real and imaginary
parts we fail to honor IL constraints which are that a BIT_FIELD_REF
of register type should be outermost in a ref.  The following
simply avoids the transform when the complex load has such a
BIT_FIELD_REF.

PR tree-optimization/117417
* tree-ssa-forwprop.cc (pass_forwprop::execute): Avoid
decomposing BIT_FIELD_REF complex load.

* gcc.dg/torture/pr117417.c: New testcase.
gcc/testsuite/gcc.dg/torture/pr117417.c [new file with mode: 0644]
gcc/tree-ssa-forwprop.cc