arsenm wrote: I thought instcombine deliberately avoided introducing these intrinsics and left it for codegenprepare. CodeGenPrepare seems to not catch this pattern though https://github.com/llvm/llvm-project/pull/140178