Re: [PATCH] Add EDGE_PURE_SIBCALL
Andrea Pinski <[email protected]>
| Newsgroups | gmane.comp.gcc.patches |
|---|---|
| Message-ID | <CALvbMcBDeR6cap9pfmcmZAyHXjdo50UNj0VHjhGa4qW6K4MRow@mail.gmail.com> |
On Fri, Aug 14, 2026 at 2:13 PM H.J. Lu <[email protected]> wrote: > > Add EDGE_PURE_SIBCALL to mark an edge which has a pure sibcall without > other control flow transfers. I don't like the pure part of the name, especially considered pure for a function that already exists. Maybe ONLY would be better. > > * basic-block.h (EDGE_PURE_SIBCALL): New. > * cfgbuild.cc (make_edges): Use EDGE_PURE_SIBCALL to make a > sibcall edge. > * cfgexpand.cc (expand_gimple_tailcall): Likewise. > * cfgrtl.cc (purge_dead_edges): Assert EDGE_PURE_SIBCALL. > > -- > H.J.