File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed
test/tools/llvm-reduce/mir Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change
1
+ # REQUIRES: amdgpu-registered-target
2
+ # RUN: llvm-reduce -simplify-mir -mtriple=amdgcn-amd-amdhsa --delta-passes=instructions --test FileCheck --test-arg --check-prefix=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t 2> %t.log
3
+ # RUN: FileCheck --match-full-lines --check-prefix=RESULT %s < %t
4
+
5
+ # CHECK-INTERESTINGNESS: S_ENDPGM
6
+
7
+ # Make sure we preserve the default value of unset maxCallFrameSize,
8
+ # and don't treat it as computed to 0.
9
+
10
+ # RESULT: frameInfo:
11
+ # RESULT-NOT: maxCallFrameSize
12
+ ---
13
+ name: func
14
+ tracksRegLiveness: true
15
+ frameInfo:
16
+ maxCallFrameSize: 4294967295
17
+ body: |
18
+ bb.0:
19
+ S_NOP 0
20
+ S_ENDPGM 0
21
+ ...
Original file line number Diff line number Diff line change @@ -49,7 +49,9 @@ static void cloneFrameInfo(
49
49
DstMFI.setHasVAStart(SrcMFI.hasVAStart());
50
50
DstMFI.setHasMustTailInVarArgFunc(SrcMFI.hasMustTailInVarArgFunc());
51
51
DstMFI.setHasTailCall(SrcMFI.hasTailCall());
52
- DstMFI.setMaxCallFrameSize(SrcMFI.getMaxCallFrameSize());
52
+
53
+ if (SrcMFI.isMaxCallFrameSizeComputed())
54
+ DstMFI.setMaxCallFrameSize(SrcMFI.getMaxCallFrameSize());
53
55
54
56
DstMFI.setCVBytesOfCalleeSavedRegisters(
55
57
SrcMFI.getCVBytesOfCalleeSavedRegisters());
You can’t perform that action at this time.
0 commit comments