[all-commits] [llvm/llvm-project] 70289e: [RISCV][LegalizeTypes] Try to expand BSWAP before ...
Craig Topper via All-commits
all-commits at lists.llvm.org
Sun Jan 31 14:47:40 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 70289ea6f591bd39c631f1eee3e6f2622fbc1d46
https://github.com/llvm/llvm-project/commit/70289ea6f591bd39c631f1eee3e6f2622fbc1d46
Author: Craig Topper <craig.topper at sifive.com>
Date: 2021-01-31 (Sun, 31 Jan 2021)
Changed paths:
M llvm/include/llvm/CodeGen/TargetLowering.h
M llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
M llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
M llvm/test/CodeGen/RISCV/bswap-ctlz-cttz-ctpop.ll
M llvm/test/CodeGen/RISCV/rv64Zbb.ll
M llvm/test/CodeGen/RISCV/rv64Zbp.ll
Log Message:
-----------
[RISCV][LegalizeTypes] Try to expand BSWAP before promoting if the promoted BSWAP would expand anyway.
If we're going to end up expanding anyway, we should do it early
so we don't create extra operations to handle the bytes added by
promotion.
This is helfpul on RISCV where we might have to promote i16 all
the way to i64.
Differential Revision: https://reviews.llvm.org/D95756
More information about the All-commits
mailing list