https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122142
Bug ID: 122142
Summary: Add fold_before_rtl_expansion_p to gimple-fold
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Keywords: internal-improvement
Severity: enhancement
Priority: P3
Component: tree-optimization
Assignee: pinskia at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
From
https://inbox.sourceware.org/gcc-patches/CAFiYyc1jzZSZNhTas-DdMBFOzH1p96oGN=ovj6fyjt8hzdu...@mail.gmail.com/T/#u
:
```
Seeing the above more and more I wonder if we want to abstract
that into an inline function (in gimple-fold.h?), like
fold_before_rtl_expansion_p ()
or so? Similar to the canonicalize_math_p (),
optimize_vectors_before_lowering_p (), etc.
predicates we have in {gimple,generic}-match-head.cc
```