aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-11-10 12:39:11 +0100
committerRichard Biener <rguenther@suse.de>2023-11-10 14:17:12 +0100
commite5f1956498251a4973d52c8aad3faf34d0443169 (patch)
treed0b490c010b5e888c3682eb884122e54f2ab60a2 /gcc/fold-const.cc
parenta5922427c29fad177251d89cc946d1c5bfc135eb (diff)
downloadgcc-e5f1956498251a4973d52c8aad3faf34d0443169.zip
gcc-e5f1956498251a4973d52c8aad3faf34d0443169.tar.gz
gcc-e5f1956498251a4973d52c8aad3faf34d0443169.tar.bz2
tree-optimization/110221 - SLP and loop mask/len
The following fixes the issue that when SLP stmts are internal defs but appear invariant because they end up only using invariant defs then they get scheduled outside of the loop. This nice optimization breaks down when loop masks or lens are applied since those are not explicitly tracked as dependences. The following makes sure to never schedule internal defs outside of the vectorized loop when the loop uses masks/lens. PR tree-optimization/110221 * tree-vect-slp.cc (vect_schedule_slp_node): When loop masking / len is applied make sure to not schedule intenal defs outside of the loop. * gfortran.dg/pr110221.f: New testcase.
Diffstat (limited to 'gcc/fold-const.cc')
0 files changed, 0 insertions, 0 deletions