[InstCombine] Distributive or+mul with const operand
We aleady support the transform: `(X+C1)*CI -> X*CI+C1*CI` Here the case is a little special as the form of `(X+C1)*CI` is transformed into `(X|C1)*CI`, so we should also support the transform: `(X|C1)*CI -> X*CI+C1*CI` Fixes https://github.com/llvm/llvm-project/issues/57278 Reviewed By: bcl5980, spatel, RKSimon Differential Revision: https://reviews.llvm.org/D132658
Loading
Please sign in to comment