[llvm] efc32f5 - [RISCV] Use Triple::isRISCV64(). NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 7 18:27:19 PST 2023
Author: Craig Topper
Date: 2023-12-07T18:21:20-08:00
New Revision: efc32f5e06b38b224cbce4df4a633f8c9d46816e
URL: https://github.com/llvm/llvm-project/commit/efc32f5e06b38b224cbce4df4a633f8c9d46816e
DIFF: https://github.com/llvm/llvm-project/commit/efc32f5e06b38b224cbce4df4a633f8c9d46816e.diff
LOG: [RISCV] Use Triple::isRISCV64(). NFC
Added:
Modified:
llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVTargetMachine.cpp b/llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
index ba13f8d2f4480..84239db1971c2 100644
--- a/llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
+++ b/llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
@@ -549,7 +549,7 @@ void RISCVPassConfig::addMachineSSAOptimization() {
if (EnableMachineCombiner)
addPass(&MachineCombinerID);
- if (TM->getTargetTriple().getArch() == Triple::riscv64) {
+ if (TM->getTargetTriple().isRISCV64()) {
addPass(createRISCVOptWInstrsPass());
}
}
More information about the llvm-commits
mailing list