[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
Author: Craig Topper <craig.topper at sifive.com>
Date: 2022-01-09 (Sun, 09 Jan 2022)
[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
More information about the All-commits