Re: Copy EH phi args for throwing hardened compares

2022-02-24 Thread Richard Biener via Gcc-patches
On Wed, Feb 23, 2022 at 11:44 PM Alexandre Oliva via Gcc-patches wrote: > > > When we duplicate a throwing compare for hardening, the EH edge from > the original compare gets duplicated for the inverted compare, but we > failed to adjust any PHI nodes in the EH block. This patch adds the > needed

Copy EH phi args for throwing hardened compares

2022-02-23 Thread Alexandre Oliva via Gcc-patches
When we duplicate a throwing compare for hardening, the EH edge from the original compare gets duplicated for the inverted compare, but we failed to adjust any PHI nodes in the EH block. This patch adds the needed adjustment, copying the PHI args from those of the preexisting edge. Regstrapped