[AArch64] Lower multiplication by a constant int to madd
Lower a = b * C -1 into madd a) instcombine change b * C -1 --> b * C + (-1) b) machine-combine change b * C + (-1) --> madd Assembler will transform the neg immedate of sub to add, see https://gcc.godbolt.org/z/cTcxePPf4 Fixes AArch64 part of https://github.com/llvm/llvm-project/issues/57255. Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D134336
Loading
Please sign in to comment