[all-commits] [llvm/llvm-project] eb75f2: [RISCV][LegalizeTypes] Try to expand BITREVERSE be...
Craig Topper via All-commits
all-commits at lists.llvm.org
Mon Feb 15 12:42:30 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: eb75f250feb6822d57be95e8535e28724cde6e9d
https://github.com/llvm/llvm-project/commit/eb75f250feb6822d57be95e8535e28724cde6e9d
Author: Craig Topper <craig.topper at sifive.com>
Date: 2021-02-15 (Mon, 15 Feb 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/rv32Zbp.ll
M llvm/test/CodeGen/RISCV/rv64Zbp.ll
Log Message:
-----------
[RISCV][LegalizeTypes] Try to expand BITREVERSE before promoting if the promoted BITREVERSE 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.
Simlilar was done for BSWAP previously.
Reviewed By: RKSimon
Differential Revision: https://reviews.llvm.org/D96681
More information about the All-commits
mailing list