[llvm] [ARM] Correction: hasNOP should be HasV6Ops, not HasV6KOps (PR #196625)
via llvm-commits
llvm-commits at lists.llvm.org
Fri May 8 12:46:47 PDT 2026
https://github.com/LumioseSil created https://github.com/llvm/llvm-project/pull/196625
This is because NOP is actually just HINT.
>From 1e1fc6efc51e6ff69a85bd5042bddc168795c7a8 Mon Sep 17 00:00:00 2001
From: AZero13 <gfunni234 at gmail.com>
Date: Fri, 8 May 2026 15:46:27 -0400
Subject: [PATCH] [ARM] Correction: hasNOP should be HasV6Ops, not HasV6KOps
This is because NOP is actually just HINT.
---
llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
index eb8ff794ad8a6..755d598555f8c 100644
--- a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
@@ -5255,7 +5255,7 @@ void ARMBaseInstrInfo::breakPartialRegDependency(
}
bool ARMBaseInstrInfo::hasNOP() const {
- return Subtarget.hasFeature(ARM::HasV6KOps);
+ return Subtarget.hasFeature(ARM::HasV6Ops);
}
bool ARMBaseInstrInfo::isSwiftFastImmShift(const MachineInstr *MI) const {
More information about the llvm-commits
mailing list