aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2025-04-29 13:23:41 +0200
committerRichard Biener <rguenth@gcc.gnu.org>2025-04-30 14:45:54 +0200
commit51ba233fe2db562390a6e0a3618420889761bc77 (patch)
tree5c27d54b87805130831975124c7e11c7334a4918 /libjava
parenta85b89e26b1f50997701eb428c2dd71668f216ff (diff)
downloadgcc-51ba233fe2db562390a6e0a3618420889761bc77.zip
gcc-51ba233fe2db562390a6e0a3618420889761bc77.tar.gz
gcc-51ba233fe2db562390a6e0a3618420889761bc77.tar.bz2
tree-optimization/119960 - failed external SLP promotion
The following addresses a too conservative sanity check of SLP nodes we want to promote external. The issue lies in code generation for such external which relies on get_later_stmt to figure an insert location. But get_later_stmt relies on the ability to totally order stmts, specifically implementation-wise that they are all from the same BB, which is what is verified at the moment. The patch changes this to require stmts to be orderable by dominance queries. For simplicity and seemingly enough for the testcase in PR119960, this handles the case of two distinct BBs. PR tree-optimization/119960 * tree-vect-slp.cc (vect_slp_can_convert_to_external): Handle cases where defs from multiple BBs are ordered by their dominance relation. * gcc.dg/vect/bb-slp-pr119960-1.c: New testcase.
Diffstat (limited to 'libjava')
0 files changed, 0 insertions, 0 deletions