-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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. (cherry picked from commit 6ae36c012728a274a78a771e4506681732f85a6d)
- Loading branch information
Showing
3 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
; 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 |