[all-commits] [llvm/llvm-project] ce66f4: [RISCV] Restrict when RISCVMatInt will retry SLLI ...
Craig Topper via All-commits
all-commits at lists.llvm.org
Tue Dec 6 09:26:06 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ce66f4d0a6e0f5e756fc06992bb143d7bf6def66
https://github.com/llvm/llvm-project/commit/ce66f4d0a6e0f5e756fc06992bb143d7bf6def66
Author: Craig Topper <craig.topper at sifive.com>
Date: 2022-12-06 (Tue, 06 Dec 2022)
Changed paths:
M llvm/lib/Target/RISCV/MCTargetDesc/RISCVMatInt.cpp
Log Message:
-----------
[RISCV] Restrict when RISCVMatInt will retry SLLI as a last step. NFC
The main algorithm will already end with a SLLI when there are 12
or more trailing zeros. We only need to retry when there are less
than 12 trailing zeros since the main algorithm will pick an ADDI
or ADDIW at the end for those cases.
More information about the All-commits
mailing list