[RISCV] Optimize immediate materialisation with SH*ADD
commit4c3d916c4bd2a392101c74dd270bd1e6a4fec15b
authorBen Shi <powerman1st@163.com>
Thu, 11 Nov 2021 12:57:33 +0000 (11 12:57 +0000)
committerBen Shi <powerman1st@163.com>
Mon, 15 Nov 2021 23:34:28 +0000 (15 23:34 +0000)
tree947841a88e0369e347da097c30f4211206bfe259
parent39256ed58ce96daac0e4153af7b73122505c1626
[RISCV] Optimize immediate materialisation with SH*ADD

Use LUI+SH*ADD+ADDI to compose specific immediates.

Reviewed By: craig.topper, luismarques

Differential Revision: https://reviews.llvm.org/D113568
llvm/lib/Target/RISCV/MCTargetDesc/RISCVMatInt.cpp
llvm/test/CodeGen/RISCV/imm.ll
llvm/test/MC/RISCV/rv64zba-aliases-valid.s