> > However this exposes PR117352 which is a negative interaction of the > > more aggressive bit test conversion. I don't think it's a show stopper, > > this can be sorted out later. > > I think it is a show stopper for GCC 15 because it is a pretty big > performance regression with targets that have ccmp (which now includes > x86_64).
Okay I reverted it. It showed a weakness in the new algorithm that it doesn't take range comparisons into account. And yes the cost check probably needs to be adjust to understand ccmp. -Andi