HomePhabricator

[RISCV] optimize addition with a pair of (addi imm)

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

Description

[RISCV] optimize addition with a pair of (addi imm)

For an addition with an immediate in specific ranges, a pair of
addi-addi can be generated instead of the ordinary lui-addi-add serial.

Reviewed By: MaskRay, luismarques

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

Details

Committed
MaskRayJul 7 2020, 6:57 PM
Reviewer
MaskRay
Differential Revision
D82262: [RISCV] optimize addition with a pair of (addi imm)
Parents
rGcb82de296017: [RISCV] Optimize multiplication by constant
Branches
Unknown
Tags
Unknown