[all-commits] [llvm/llvm-project] cca44e: [RISCV] Explicitly check for supported opcodes in ...
Craig Topper via All-commits
all-commits at lists.llvm.org
Wed Jun 25 21:28:55 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cca44e030ddd74c365fdd6b82946e61efa41dee2
https://github.com/llvm/llvm-project/commit/cca44e030ddd74c365fdd6b82946e61efa41dee2
Author: Craig Topper <craig.topper at sifive.com>
Date: 2025-06-25 (Wed, 25 Jun 2025)
Changed paths:
M llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
Log Message:
-----------
[RISCV] Explicitly check for supported opcodes in optimizeCondBranch. NFC (#145622)
We don't support any of the immediate branches in this function yet so
explicitly exclude them rather than relying on isReg to return false.
Remove use of AnalyzeBranch. It doesn't help us much. Part of the code
was already getting the operands directly and it just complicated
creating a new branch.
I also inlined the modifyBranch function so we could use addReg on
BuildMI.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list