goldsteinn wrote: Wonder if this code would fit in `simplifySExtOfDecomposedSetCCImpl` of https://github.com/llvm/llvm-project/pull/82290. I'm about to board a flight so don't have time to check now, but will likely tomorrow. https://github.com/llvm/llvm-project/pull/95915