llvm-project/llvm/test/CodeGen/AArch64/sched-loop-align.ll
Martin Storsjö 6ae36c0127
[AArch64] Disable loop alignment for Windows targets (#67894)
This should fix #66912. When emitting SEH unwind info, we need to be
able to calculate the exact length of functions before alignments are
fixed. Until that limitation is overcome, just disable all loop
alignment on Windows targets.
2023-10-02 23:55:23 +03:00

22 lines
458 B
LLVM

; RUN: llc < %s -mtriple=aarch64-windows | FileCheck %s --check-prefix=WINDOWS
; RUN: llc < %s -mtriple=aarch64-linux | FileCheck %s --check-prefix=LINUX
define dso_local void @b() #0 {
entry:
br label %for.cond
for.cond:
tail call void @a()
br label %for.cond
}
declare dso_local void @a(...)
attributes #0 = { noreturn nounwind uwtable "tune-cpu"="cortex-a53" }
; LINUX-LABEL: b:
; LINUX: .p2align 4
; WINDOWS-LABEL: b:
; WINDOWS-NOT: .p2align