On Sat, Sep 06, 2025 at 03:27:53PM -0700, Andrew Pinski wrote:
> This new pass will ICE if the target does not define the macro_fusion_pair_p
> pass. The pass will not be useful in that case so it is best to return
> early.
>
> Pushed as obvious after a bootstrap on x86_64-linux-gnu.
>
> PR rtl-optimization/121835
> gcc/ChangeLog:
>
> * dep-fusion.cc (pass_dep_fusion::execute): Return early if
> macro_fusion_pair_p is null.
Why not add
&& targetm.sched.macro_fusion_pair_p
to pass_dep_fusion::gate() instead?
You wouldn't get a useless dump file then.
Jakub