https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127419
Bug ID: 127419
Summary: hoist_adjacent_loads should be removed
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Keywords: internal-improvement
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Depends on: 125896
Target Milestone: ---
factor_out_conditional_load does most (but not all) of the same thing.
The biggest thing hoist_adjacent_loads handle that factor_out_conditional_load
does not is dealing with non MEM_REFs which is PR 125896.
Note there are only 2 testcases that explictly test for it too:
../../gcc/testsuite/gcc.target/mips/pr54240.c
../../gcc/testsuite/gcc.target/powerpc/pr54240.c
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125896
[Bug 125896] load common does not support non-only MEM_REF-refences