Re: [PATCH] IFCOMBINE: Remove outer condition for two same conditionals

2023-08-29 Thread Richard Biener via Gcc-patches
On Mon, Aug 28, 2023 at 12:58 AM Andrew Pinski via Gcc-patches wrote: > > This adds a simple case to remove an outer condition if the two inner > condtionals are the same and lead the same location. > This can show up due to jump threading or inlining or someone wrote code > like this. > >

[PATCH] IFCOMBINE: Remove outer condition for two same conditionals

2023-08-27 Thread Andrew Pinski via Gcc-patches
This adds a simple case to remove an outer condition if the two inner condtionals are the same and lead the same location. This can show up due to jump threading or inlining or someone wrote code like this. ifcombine-1.c shows the simple case where this is supposed to solve. Even though PRE can