diff options
author | Tamar Christina <tamar.christina@arm.com> | 2024-09-30 13:06:24 +0100 |
---|---|---|
committer | Tamar Christina <tamar.christina@arm.com> | 2024-09-30 13:06:24 +0100 |
commit | 87905f63a6521eef1f38082e2368e18c637ef092 (patch) | |
tree | 4546cb40085793bc85fe20b0a800fbc440532cdc /include/gdb/gdb-index.h | |
parent | bac95615b50d4a012c448cba080c106702184e3a (diff) | |
download | gcc-87905f63a6521eef1f38082e2368e18c637ef092.zip gcc-87905f63a6521eef1f38082e2368e18c637ef092.tar.gz gcc-87905f63a6521eef1f38082e2368e18c637ef092.tar.bz2 |
middle-end: check explicitly for external or constants when checking for loop invariant [PR116817]
The previous check if a value was external was checking
!vect_get_internal_def (vinfo, var) but this of course isn't completely right
as they could reductions etc.
This changes the check to just explicitly look at externals and constants.
Note that reductions remain unhandled here, but we don't support codegen of
boolean reductions today anyway.
So at the time we do then this would have the be handled as well in lowering.
gcc/ChangeLog:
PR tree-optimization/116817
* tree-vect-patterns.cc (vect_recog_bool_pattern): Check for const or
externals.
gcc/testsuite/ChangeLog:
PR tree-optimization/116817
* g++.dg/vect/pr116817.cc: New test.
Diffstat (limited to 'include/gdb/gdb-index.h')
0 files changed, 0 insertions, 0 deletions