[all-commits] [llvm/llvm-project] 6d7ea5: [RISCV] Insert sext_inreg when type legalizing add...
Craig Topper via All-commits
all-commits at lists.llvm.org
Wed Aug 18 10:44:40 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6d7ea597efee6398c4bf09a0d60a870c67ef2764
https://github.com/llvm/llvm-project/commit/6d7ea597efee6398c4bf09a0d60a870c67ef2764
Author: Craig Topper <craig.topper at sifive.com>
Date: 2021-08-18 (Wed, 18 Aug 2021)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/test/CodeGen/RISCV/add-imm.ll
M llvm/test/CodeGen/RISCV/alu32.ll
M llvm/test/CodeGen/RISCV/double-stack-spill-restore.ll
M llvm/test/CodeGen/RISCV/mul.ll
M llvm/test/CodeGen/RISCV/rv64i-exhaustive-w-insts.ll
M llvm/test/CodeGen/RISCV/setcc-logic.ll
M llvm/test/CodeGen/RISCV/split-offsets.ll
M llvm/test/CodeGen/RISCV/vararg.ll
Log Message:
-----------
[RISCV] Insert sext_inreg when type legalizing add/sub/mul with constant LHS.
We already do this for non-constants RHS. This just removes the
special case. I believe the special case may have been needed
because the ANY_EXTEND of a constant used to create zero extended
constants, but we recently changed that to produce sign extended
constants.
D107658 is needed to prevent some regressions.
Reviewed By: luismarques
Differential Revision: https://reviews.llvm.org/D107697
More information about the All-commits
mailing list