HomePhabricator

[ARM] Implement target hook function to decide folding (mul (add x, c1), c2)

Authored by benshi001 on Sep 6 2021, 7:21 PM.

Description

[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