[llvm] [ARM] Call isSchedulingBoundary instead of doing the check manually (NFC) (PR #159393)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 17 09:23:18 PDT 2025


https://github.com/AZero13 created https://github.com/llvm/llvm-project/pull/159393

None

>From 36f92e49fd08462f577454a1124c979049e260fb Mon Sep 17 00:00:00 2001
From: AZero13 <gfunni234 at gmail.com>
Date: Wed, 17 Sep 2025 12:22:32 -0400
Subject: [PATCH] [ARM] Call isSchedulingBoundary instead of doing the check
 manually (NFC)

---
 llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
index 5c35b3327c16d..9d65282b26848 100644
--- a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
@@ -1897,12 +1897,7 @@ bool ARMBaseInstrInfo::isSchedulingBoundary(const MachineInstr &MI,
   if (MI.isDebugInstr())
     return false;
 
-  // Terminators and labels can't be scheduled around.
-  if (MI.isTerminator() || MI.isPosition())
-    return true;
-
-  // INLINEASM_BR can jump to another block
-  if (MI.getOpcode() == TargetOpcode::INLINEASM_BR)
+  if (TargetInstrInfo::isSchedulingBoundary(MI, MBB, MF))
     return true;
 
   if (isSEHInstruction(MI))



More information about the llvm-commits mailing list