Re: [PATCH/RFC] cprop_hardreg... Third time's a charm.

2022-06-02 Thread Richard Biener via Gcc-patches
On Thu, Jun 2, 2022 at 12:20 PM Roger Sayle wrote: > > > > This middle-end patch proposes the "hard register constant propagation" > > pass be performed up to three times on each basic block (up from the > > current two times) if the second pass successfully made changes. > > > > The motivation fo

[PATCH/RFC] cprop_hardreg... Third time's a charm.

2022-06-02 Thread Roger Sayle
This middle-end patch proposes the "hard register constant propagation" pass be performed up to three times on each basic block (up from the current two times) if the second pass successfully made changes. The motivation for three passes is to handle the "swap idiom" (i.e. t = x; x = y; y