fhahn added a comment. I pushed another optimization that brings time spent in CE down to ~0.7s (vs 1.2s in InstCombine). I plan to re-land this soon. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D135915/new/ https://reviews.llvm.org/D135915