[all-commits] [llvm/llvm-project] 1e9d08: [RISCV] optimize addition with a pair of (addi imm)
Ben Shi via All-commits
all-commits at lists.llvm.org
Tue Jul 7 18:58:01 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 1e9d0811c9bf40abbe07d591057869568f140036
https://github.com/llvm/llvm-project/commit/1e9d0811c9bf40abbe07d591057869568f140036
Author: Ben Shi <powerman1st at 163.com>
Date: 2020-07-07 (Tue, 07 Jul 2020)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
A llvm/test/CodeGen/RISCV/add-imm.ll
Log Message:
-----------
[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
More information about the All-commits
mailing list