[RISCV] Have customLegalizeToWOp truncate to the original type instead of i32 now...
authorCraig Topper <craig.topper@sifive.com>
Tue, 26 Jan 2021 18:47:49 +0000 (10:47 -0800)
committerCraig Topper <craig.topper@sifive.com>
Tue, 26 Jan 2021 18:50:03 +0000 (10:50 -0800)
commitf9d7f77267bca055c6cc480065ca7dd9f768b948
tree9b4e763e67474b31b2c120a739b0e8497c5c7142
parent1d6df1fcf0a754adff8b66f3445d7d5ab130434e
[RISCV] Have customLegalizeToWOp truncate to the original type instead of i32 now that we use it for i8/i16 as well.

239cfbccb0509da1a08d9e746706013b732e646b add support for legalizing
i8/i16 UDIV/UREM/SDIV to use *W instructions. So we need to truncate
to i8/i16 if we're legalizing one of those.
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/rv64m-exhaustive-w-insts.ll