[RISCV] Optimize immediate materialisation with SLLI.UW
authorBen Shi <powerman1st@163.com>
Wed, 13 Oct 2021 10:37:56 +0000 (10:37 +0000)
committerBen Shi <powerman1st@163.com>
Thu, 14 Oct 2021 02:24:50 +0000 (02:24 +0000)
commit481db13fec3d112a23861759247d846f120c6c8b
tree7b082f48acdf40861c56566dfaf4d40fcf576c38
parentc1d6ba54d360c953f926ea6df547b1ba0dbcdc44
[RISCV] Optimize immediate materialisation with SLLI.UW

Use LUI+SLLI.UW to compose the upper bits instead of LUI+SLLI.

Reviewed By: craig.topper

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