Rework inReadableOrder() as a recursive descent.
Add a test for unreachable merge block. Update test results with the new order: mainly delaying merge blocks and removing unreachable ones.
This commit is contained in:
@@ -106,6 +106,11 @@ Linked fragment stage:
|
||||
Switch 65 68
|
||||
case 1: 66
|
||||
case 2: 67
|
||||
68: Label
|
||||
80: 6(float) Load 73(x)
|
||||
81: 6(float) ExtInst 1(GLSL.std.450) 15(Tan) 80
|
||||
Store 71(f) 81
|
||||
Branch 69
|
||||
66: Label
|
||||
74: 6(float) Load 73(x)
|
||||
75: 6(float) ExtInst 1(GLSL.std.450) 13(Sin) 74
|
||||
@@ -116,17 +121,19 @@ Linked fragment stage:
|
||||
78: 6(float) ExtInst 1(GLSL.std.450) 14(Cos) 77
|
||||
Store 71(f) 78
|
||||
Branch 69
|
||||
68: Label
|
||||
80: 6(float) Load 73(x)
|
||||
81: 6(float) ExtInst 1(GLSL.std.450) 15(Tan) 80
|
||||
Store 71(f) 81
|
||||
Branch 69
|
||||
69: Label
|
||||
83: 9(int) Load 60(c)
|
||||
SelectionMerge 87 None
|
||||
Switch 83 86
|
||||
case 1: 84
|
||||
case 2: 85
|
||||
86: Label
|
||||
97: 6(float) Load 73(x)
|
||||
98: 6(float) ExtInst 1(GLSL.std.450) 15(Tan) 97
|
||||
99: 6(float) Load 71(f)
|
||||
100: 6(float) FAdd 99 98
|
||||
Store 71(f) 100
|
||||
Branch 87
|
||||
84: Label
|
||||
88: 6(float) Load 73(x)
|
||||
89: 6(float) ExtInst 1(GLSL.std.450) 13(Sin) 88
|
||||
@@ -141,13 +148,6 @@ Linked fragment stage:
|
||||
95: 6(float) FAdd 94 93
|
||||
Store 71(f) 95
|
||||
Branch 87
|
||||
86: Label
|
||||
97: 6(float) Load 73(x)
|
||||
98: 6(float) ExtInst 1(GLSL.std.450) 15(Tan) 97
|
||||
99: 6(float) Load 71(f)
|
||||
100: 6(float) FAdd 99 98
|
||||
Store 71(f) 100
|
||||
Branch 87
|
||||
87: Label
|
||||
102: 9(int) Load 60(c)
|
||||
SelectionMerge 105 None
|
||||
@@ -174,6 +174,13 @@ Linked fragment stage:
|
||||
Switch 117 120
|
||||
case 1: 118
|
||||
case 2: 119
|
||||
120: Label
|
||||
148: 6(float) Load 73(x)
|
||||
149: 6(float) ExtInst 1(GLSL.std.450) 15(Tan) 148
|
||||
150: 6(float) Load 71(f)
|
||||
151: 6(float) FAdd 150 149
|
||||
Store 71(f) 151
|
||||
Branch 121
|
||||
118: Label
|
||||
122: 6(float) Load 73(x)
|
||||
123: 6(float) ExtInst 1(GLSL.std.450) 13(Sin) 122
|
||||
@@ -207,13 +214,6 @@ Linked fragment stage:
|
||||
Branch 131
|
||||
131: Label
|
||||
Branch 121
|
||||
120: Label
|
||||
148: 6(float) Load 73(x)
|
||||
149: 6(float) ExtInst 1(GLSL.std.450) 15(Tan) 148
|
||||
150: 6(float) Load 71(f)
|
||||
151: 6(float) FAdd 150 149
|
||||
Store 71(f) 151
|
||||
Branch 121
|
||||
121: Label
|
||||
Store 153(i) 154
|
||||
Branch 155
|
||||
@@ -228,6 +228,13 @@ Linked fragment stage:
|
||||
Switch 162 165
|
||||
case 1: 163
|
||||
case 2: 164
|
||||
165: Label
|
||||
196: 6(float) Load 73(x)
|
||||
197: 6(float) ExtInst 1(GLSL.std.450) 15(Tan) 196
|
||||
198: 6(float) Load 71(f)
|
||||
199: 6(float) FAdd 198 197
|
||||
Store 71(f) 199
|
||||
Branch 166
|
||||
163: Label
|
||||
167: 6(float) Load 73(x)
|
||||
168: 6(float) ExtInst 1(GLSL.std.450) 13(Sin) 167
|
||||
@@ -265,13 +272,6 @@ Linked fragment stage:
|
||||
193: 6(float) FAdd 192 191
|
||||
Store 71(f) 193
|
||||
Branch 166
|
||||
165: Label
|
||||
196: 6(float) Load 73(x)
|
||||
197: 6(float) ExtInst 1(GLSL.std.450) 15(Tan) 196
|
||||
198: 6(float) Load 71(f)
|
||||
199: 6(float) FAdd 198 197
|
||||
Store 71(f) 199
|
||||
Branch 166
|
||||
166: Label
|
||||
201: 6(float) Load 71(f)
|
||||
203: 160(bool) FOrdLessThan 201 202
|
||||
@@ -331,10 +331,10 @@ Linked fragment stage:
|
||||
SelectionMerge 254 None
|
||||
Switch 251 253
|
||||
case 0: 252
|
||||
252: Label
|
||||
Branch 254
|
||||
253: Label
|
||||
Branch 254
|
||||
252: Label
|
||||
Branch 254
|
||||
254: Label
|
||||
258: 9(int) Load 60(c)
|
||||
SelectionMerge 260 None
|
||||
|
||||
Reference in New Issue
Block a user