Re: Possible dead code in file lra-spills.cc

2022-12-15 Thread G.T. via Gcc
Ok. And as you point out it is redundant code rather than dead code, to be precise. On Wed, Dec 14, 2022, 1:47 PM Richard Biener wrote: > > > > Am 14.12.2022 um 18:28 schrieb G.T. via Gcc : > > > > At line 276, lra_assert (spill_class != NO_REGS); would trigger > &

Possible dead code in file lra-spills.cc

2022-12-14 Thread G.T. via Gcc
At line 276, lra_assert (spill_class != NO_REGS); would trigger whenever execution reached here with spill_class equal to NO_REGS. Seems to me that would never happen. Because one of the conditions in the if statement right above it (line 265) catches spill_class == NO_REGS and causes the rest of t