[all-commits] [llvm/llvm-project] 2dd52f: [RISCV] Fold (srl (and X, 0xffff), C)->(srli (slli...
Craig Topper via All-commits
all-commits at lists.llvm.org
Sun Jan 9 18:44:19 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2dd52f840b9b9b66e06c32f706d6b31134435efe
https://github.com/llvm/llvm-project/commit/2dd52f840b9b9b66e06c32f706d6b31134435efe
Author: Craig Topper <craig.topper at sifive.com>
Date: 2022-01-09 (Sun, 09 Jan 2022)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
M llvm/test/CodeGen/RISCV/div-by-constant.ll
M llvm/test/CodeGen/RISCV/rv32zbb-zbp.ll
M llvm/test/CodeGen/RISCV/rv64zbb-zbp.ll
Log Message:
-----------
[RISCV] Fold (srl (and X, 0xffff), C)->(srli (slli X, (XLen-16), (XLen-16) + C) even with Zbb/Zbp.
We can use zext.h with Zbb, but srli/slli may offer more opportunities
for compression.
More information about the All-commits
mailing list