[PATCH] D82660: [RISCV] Optimize multiplication by specific immediates
Ben Shi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 26 08:10:35 PDT 2020
benshi001 added a reviewer: kito-cheng.
benshi001 added a comment.
This patch can not cover all cases (especially "call __mulsi3" on rv32 without M extension), but at least it works well for most cases.
Maybe a better solution is make ISD::MUL as Custom, which I will try later. You are appreciated to review and accept such a partial optimization.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82660/new/
https://reviews.llvm.org/D82660
More information about the llvm-commits
mailing list