https://alive2.llvm.org/ce/z/X6DPQJ https://godbolt.org/z/5GMPGxdKE This pattern and its variants appear quite a lot in 638.imagick in SPEC CPU17.