From 4be13607f37e4115fbfc8286fdbacc67dd4ebf49 Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Fri, 6 Oct 2023 18:31:21 +0300 Subject: [PATCH] [AArch64] Fix for misched-branch-targets.mir test Fix test failure in non-assertion builds introduced by f1b2dd2a111f038420b3f69d4ce0b3b3f245c873. --- llvm/test/CodeGen/AArch64/misched-branch-targets.mir | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/test/CodeGen/AArch64/misched-branch-targets.mir b/llvm/test/CodeGen/AArch64/misched-branch-targets.mir index f32c1e964f973..40f148438e537 100644 --- a/llvm/test/CodeGen/AArch64/misched-branch-targets.mir +++ b/llvm/test/CodeGen/AArch64/misched-branch-targets.mir @@ -1,6 +1,9 @@ # RUN: llc -o - -run-pass=machine-scheduler -misched=shuffle %s | FileCheck %s # RUN: llc -o - -run-pass=postmisched %s | FileCheck %s +# REQUIRES: asserts +# -misched=shuffle is only available with assertions enabled + # Check that instructions that are recognized as branch targets by BTI # are not reordered by machine instruction schedulers.