[all-commits] [llvm/llvm-project] f9d7f7: [RISCV] Have customLegalizeToWOp truncate to the o...
Craig Topper via All-commits
all-commits at lists.llvm.org
Tue Jan 26 10:52:58 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f9d7f77267bca055c6cc480065ca7dd9f768b948
https://github.com/llvm/llvm-project/commit/f9d7f77267bca055c6cc480065ca7dd9f768b948
Author: Craig Topper <craig.topper at sifive.com>
Date: 2021-01-26 (Tue, 26 Jan 2021)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/test/CodeGen/RISCV/rv64m-exhaustive-w-insts.ll
Log Message:
-----------
[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.
More information about the All-commits
mailing list