Commit Graph

2 Commits

Author SHA1 Message Date
Ben Shi 63ca9371c7 [ARM] Implement target hook function to decide folding (mul (add x, c1), c2)
Prevent the folding in DAGCombine if it leads to worse code.

Reviewed By: dmgreen

Differential Revision: https://reviews.llvm.org/D109124
2021-09-07 15:42:43 +08:00
Ben Shi 20f890696f [ARM][test] Add new tests for (mul (add r, c0), c1)
Reviewed By: RKSimon, dmgreen

Differential Revision: https://reviews.llvm.org/D109123
2021-09-07 15:42:32 +08:00