AZero13 wrote: Yeah but it's way easier to just tack on this pattern to a function that deals with mul for years. We can discuss moving both this and multiplication to instcombine for another patch. https://github.com/llvm/llvm-project/pull/140178