[PATCH] D135441: [AArch64][SelectionDAG] Lower multiplication by a constant to shl+add+shl+add
Allen zhong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 7 18:08:58 PDT 2022
Allen added a comment.
In D135441#3843605 <https://reviews.llvm.org/D135441#3843605>, @efriedma wrote:
> This is getting into the territory of actually being slower than a "mul", depending on the latency of "mul" and "add-with-shift" on the target CPU... we probably need CPU-specific modeling if you want to go this direction.
Thanks. As the Selection DAG doesn't include schedule model, so this should be checked in machine combiner?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135441/new/
https://reviews.llvm.org/D135441
More information about the llvm-commits
mailing list