[InstCombine] try harder to cancel out mul/div
((Op1 * X) / Y) / Op1 --> X / Y https://alive2.llvm.org/ce/z/JYxWjA InstSimplify handles the more basic mul+div pattern with shared operand, but we don't seem to have any reassociation folds to handle cases where the common op is further away. This is a generalization of 9cff4711 and another transform derived from issue #58137.
Loading
Please sign in to comment