Re: [PATCH] Fix PR 102908: wrongly removing null pointer loads

2021-10-25 Thread Richard Biener via Gcc-patches
On Sun, Oct 24, 2021 at 11:28 AM apinski--- via Gcc-patches wrote: > > From: Andrew Pinski > > Just like PR 100382, here we have a DCE removing a > null pointer load which is needed still. > In this case, execute_fixup_cfg removes a store (correctly) > and then removes the null load (incorrectly)

[PATCH] Fix PR 102908: wrongly removing null pointer loads

2021-10-24 Thread apinski--- via Gcc-patches
From: Andrew Pinski Just like PR 100382, here we have a DCE removing a null pointer load which is needed still. In this case, execute_fixup_cfg removes a store (correctly) and then removes the null load (incorrectly) due to not checking stmt_unremovable_because_of_non_call_eh_p. This patch adds t