Skip to content

Commit 82a0ee2

Browse files
committed
const folding: bless compiletest
1 parent 23c4cb6 commit 82a0ee2

File tree

2 files changed

+8
-28
lines changed

2 files changed

+8
-28
lines changed

tests/compiletests/ui/dis/entry-pass-mode-cast-array.stderr

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,11 @@
33
OpLine %5 13 12
44
%6 = OpLoad %7 %8
55
OpLine %5 14 4
6-
%9 = OpULessThan %10 %11 %12
7-
OpNoLine
8-
OpSelectionMerge %13 None
9-
OpBranchConditional %9 %14 %15
10-
%14 = OpLabel
11-
OpBranch %13
12-
%15 = OpLabel
13-
OpReturn
14-
%13 = OpLabel
15-
OpLine %5 14 4
16-
%16 = OpCompositeExtract %17 %6 0
17-
%18 = OpFAdd %17 %16 %19
18-
%20 = OpCompositeInsert %7 %18 %6 0
6+
%9 = OpCompositeExtract %10 %6 0
7+
%11 = OpFAdd %10 %9 %12
8+
%13 = OpCompositeInsert %7 %11 %6 0
199
OpLine %5 15 4
20-
OpStore %21 %20
10+
OpStore %14 %13
2111
OpNoLine
2212
OpReturn
2313
OpFunctionEnd

tests/compiletests/ui/dis/issue-731.stderr

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,11 @@
33
OpLine %5 11 12
44
%6 = OpLoad %7 %8
55
OpLine %5 12 4
6-
%9 = OpULessThan %10 %11 %12
7-
OpNoLine
8-
OpSelectionMerge %13 None
9-
OpBranchConditional %9 %14 %15
10-
%14 = OpLabel
11-
OpBranch %13
12-
%15 = OpLabel
13-
OpReturn
14-
%13 = OpLabel
15-
OpLine %5 12 4
16-
%16 = OpCompositeExtract %17 %6 0
17-
%18 = OpFAdd %17 %16 %19
18-
%20 = OpCompositeInsert %7 %18 %6 0
6+
%9 = OpCompositeExtract %10 %6 0
7+
%11 = OpFAdd %10 %9 %12
8+
%13 = OpCompositeInsert %7 %11 %6 0
199
OpLine %5 13 4
20-
OpStore %21 %20
10+
OpStore %14 %13
2111
OpNoLine
2212
OpReturn
2313
OpFunctionEnd

0 commit comments

Comments
 (0)