[RISCV] Don't use (ADD (SLLI C, 32), C) to materialize constants when optimizing...
authorCraig Topper <craig.topper@sifive.com>
Mon, 12 Jun 2023 16:52:35 +0000 (09:52 -0700)
committerCraig Topper <craig.topper@sifive.com>
Mon, 12 Jun 2023 16:52:35 +0000 (09:52 -0700)
commitb418482f800c946e42a12a2c2cb7bde2638251fe
tree1a67146a5d9c80298f6d41813db0ed4e5a29bc81
parent8cf3c2920d03b750124eae44f036afe702945179
[RISCV] Don't use (ADD (SLLI C, 32), C) to materialize constants when optimizing for size.

Addresses post-commit feedback from D152236.

Reviewed By: asb, dtcxzyw

Differential Revision: https://reviews.llvm.org/D152602
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/imm.ll