HomePhabricator

[RISCV] Optimize multiplication by constant

Authored by benshi001 on Jul 7 2020, 6:48 PM.

Description

[RISCV] Optimize multiplication by constant

... to shift/add or shift/sub.

Do not enable it on riscv32 with the M extension where decomposeMulByConstant
may not be an optimization.

Reviewed By: luismarques, MaskRay

Differential Revision: https://reviews.llvm.org/D82660

Details

Committed
MaskRayJul 7 2020, 6:50 PM
Reviewer
luismarques
Differential Revision
D82660: [RISCV] Optimize multiplication by constant
Parents
rG34c485201507: [mlir][spirv] Add MatrixTimesMatrix operation
Branches
Unknown
Tags
Unknown