aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2021-08-18 10:46:09 -0700
committerCraig Topper <craig.topper@sifive.com>2021-08-18 11:07:11 -0700
commit3f9b37ccb15aec02832ab363649fc7959864ec23 (patch)
tree29ea9cc683b8c898f4969df3529b47c35eb181b4 /llvm/lib/CodeGen/MachineFunction.cpp
parent791006fb8c6fff4f33c33cb513a96b1d3f94c767 (diff)
downloadllvm-3f9b37ccb15aec02832ab363649fc7959864ec23.zip
llvm-3f9b37ccb15aec02832ab363649fc7959864ec23.tar.gz
llvm-3f9b37ccb15aec02832ab363649fc7959864ec23.tar.bz2
[RISCV] Remove sext_inreg+add/sub/mul/shl isel patterns.
Let the sext_inreg be selected to sext.w. Remove unneeded sext.w during PostProcessISelDAG. This gives opportunities for some other isel patterns to match like the ADDIPair or matching mul with immediate to shXadd. This becomes possible after D107658 started selecting W instructions based on users. The sext.w will be considered a W user so isel will often select a W instruction for the sext.w input and we can just remove the sext.w. Otherwise we can combine the sext.w with a ADD/SUB/MUL/SLLI to create a new W instruction in parallel to the the original instruction. Reviewed By: luismarques Differential Revision: https://reviews.llvm.org/D107708
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions