Skip to content

Commit ec77c12

Browse files
[AMX] Fix LIT test with adjustsStack attribute for expensive checks build.
The generated MIR fails machine verifier as stack pointer is being modified without appropriate attributes in frameInfo. This PR fixes this issue by adding adjustsStack=true attribute. Fixes the post commit regression identified in llvm#155673.
1 parent 573627f commit ec77c12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/test/CodeGen/X86/AMX/amx-sink-config-after-calls.mir

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5
2-
# RUN: llc -mtriple=x86_64-- -mattr=+amx-int8,avx512f -run-pass="fastpretileconfig,regallocfast,fasttileconfig" -o - %s | FileCheck %s
2+
# RUN: llc -mtriple=x86_64-- -mattr=+amx-int8,avx512f -run-pass="fastpretileconfig,regallocfast,fasttileconfig" -verify-machineinstrs -o - %s | FileCheck %s
33

44
# Test to verify that ldtilecfg instructions are sinked closer to tile defining
55
# instructions after a call. This ensures call does not overwrite values in
@@ -43,6 +43,7 @@ liveins:
4343
- { reg: '$rdi', virtual-reg: '%0' }
4444
- { reg: '$rsi', virtual-reg: '%2' }
4545
frameInfo:
46+
adjustsStack: true
4647
maxAlignment: 1024
4748
stack:
4849
- { id: 0, size: 1024, alignment: 1024 }

0 commit comments

Comments
 (0)