diff options
| author | Yong He <yonghe@outlook.com> | 2023-07-12 16:00:05 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-12 16:00:05 -0700 |
| commit | 261b2f1f2bc13ccf7db5ec68c825ffc7b0781f7f (patch) | |
| tree | 4953e376e705a8110cb8164dda5b239c04f2768b /tests/experimental | |
| parent | bbd9c2e6d7b57f5acc3238083ab2f7c7b140df5e (diff) | |
Use scratchData on `IRInst` to replace HashSets. (#2978)
* Use scratchData on `IRInst` to replace HashSets.
* Update test results.
* Initialize scratchData.
* Update autodiff documentation.
* Use enum instead of bool.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/experimental')
| -rw-r--r-- | tests/experimental/liveness/liveness.slang.expected | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/tests/experimental/liveness/liveness.slang.expected b/tests/experimental/liveness/liveness.slang.expected index fe49e85d1..0f5e5deab 100644 --- a/tests/experimental/liveness/liveness.slang.expected +++ b/tests/experimental/liveness/liveness.slang.expected @@ -95,9 +95,10 @@ void main() SomeStruct_0 _S10 = makeSomeStruct_0(); const int _S11[100] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; int _S12 = index_0 & 7; + uint _S13 = uint(index_0); int v_1 = someSlowFunc_0(index_0); - bool _S13 = (v_1 & 256) != 0; - int _S14 = v_1 & 3; + bool _S14 = (v_1 & 256) != 0; + uint _S15 = uint(v_1 & 3); int i_2; livenessStart_1(i_2, 0); i_2 = 0; @@ -120,10 +121,10 @@ void main() livenessStart_2(t_0, 0); t_0 = _S10; SomeStruct_0 u_0; - if(_S13) + if(_S14) { - s_3.x_0 = ((anotherBuffer_0)._data[(uint(_S14))]); - t_0.x_0 = ((anotherBuffer_0)._data[(uint(_S14))]); + s_3.x_0 = ((anotherBuffer_0)._data[(_S15)]); + t_0.x_0 = ((anotherBuffer_0)._data[(_S15)]); livenessStart_2(u_0, 0); u_0.a_1 = 0; u_0.x_0 = 0; @@ -136,33 +137,33 @@ void main() x_1.a_1 = 0; x_1.x_0 = 0; x_1.c_0 = _S11; - x_1.x_0 = ((anotherBuffer_0)._data[(uint(_S14))]) + 1; - SomeStruct_0 _S15 = x_1; + x_1.x_0 = ((anotherBuffer_0)._data[(_S15)]) + 1; + SomeStruct_0 _S16 = x_1; livenessEnd_2(x_1, 0); livenessStart_2(u_0, 0); - u_0 = _S15; + u_0 = _S16; } s_3.c_0[_S12] = s_3.c_0[_S12] + 1; - int _S16 = s_3.x_0 + t_0.x_0; - SomeStruct_0 _S17 = u_0; + int _S17 = s_3.x_0 + t_0.x_0; + SomeStruct_0 _S18 = u_0; livenessEnd_2(u_0, 0); - int _S18 = _S16 + _S17.x_0 + doThing_0(t_0); - int _S19 = somethingElse_0(t_0); + int _S19 = _S17 + _S18.x_0 + doThing_0(t_0); + int _S20 = somethingElse_0(t_0); livenessEnd_2(t_0, 0); - int _S20 = _S18 + _S19; - int _S21 = s_3.c_0[2]; + int _S21 = _S19 + _S20; + int _S22 = s_3.c_0[2]; livenessEnd_2(s_3, 0); - int _S22 = _S20 + _S21; - int _S23 = res_0; + int _S23 = _S21 + _S22; + int _S24 = res_0; livenessEnd_0(res_0, 0); - int res_1 = _S23 + _S22; + int res_1 = _S24 + _S23; i_2 = i_2 + 1; livenessStart_1(res_0, 0); res_0 = res_1; } - int _S24 = res_0; + int _S25 = res_0; livenessEnd_0(res_0, 0); - ((outputBuffer_0)._data[(uint(index_0))]) = _S24; + ((outputBuffer_0)._data[(_S13)]) = _S25; return; } |
