diff options
| author | Yong He <yonghe@outlook.com> | 2023-01-27 16:41:31 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-27 16:41:31 -0800 |
| commit | 4a66e9729175a89833e5db784bb64e6a7f60cdf2 (patch) | |
| tree | 6a3cb0da3a6682ac0f8b06e66cb8e5fcd6dff279 /tests/hlsl-intrinsic | |
| parent | 93a6b6119b6b65c4f6b00ca12d745e21b679c82f (diff) | |
Register allocation during phi elimination. (#2613)
* Register allocation during phi elimination.
* Enhance the test case.
* Cleanup line breaks in test case.
* remove unncessary line break changes.
* More cleanups.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/hlsl-intrinsic')
| -rw-r--r-- | tests/hlsl-intrinsic/shader-execution-reordering/hit-object-make-hit.slang.1.expected | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/hlsl-intrinsic/shader-execution-reordering/hit-object-make-hit.slang.1.expected b/tests/hlsl-intrinsic/shader-execution-reordering/hit-object-make-hit.slang.1.expected index 15221b921..847eab926 100644 --- a/tests/hlsl-intrinsic/shader-execution-reordering/hit-object-make-hit.slang.1.expected +++ b/tests/hlsl-intrinsic/shader-execution-reordering/hit-object-make-hit.slang.1.expected @@ -65,16 +65,14 @@ uint calcValue_0(hitObjectNV hit_0) else { bool _S7 = (hitObjectIsMissNV((hit_0))); - uint r_3; if(_S7) { - r_3 = 1U; + r_0 = 1U; } else { - r_3 = 0U; + r_0 = 0U; } - r_0 = r_3; } return r_0; } @@ -96,13 +94,13 @@ void main() RayDesc_0 _S11 = ray_2; hitObjectNV hitObj_0; hitObjectRecordHitWithIndexNV(hitObj_0, scene_0, int(uint(idx_0)), int(uint(idx_0 * 2)), int(uint(idx_0 * 3)), 0U, 0U, _S11.Origin_0, _S11.TMin_0, _S11.Direction_0, _S11.TMax_0, (0)); - uint r_4 = calcValue_0(hitObj_0); + uint r_3 = calcValue_0(hitObj_0); RayDesc_0 _S12 = ray_2; hitObjectNV hitObj_1; hitObjectRecordHitNV(hitObj_1, scene_0, int(uint(idx_0)), int(uint(idx_0 * 3)), int(uint(idx_0 * 2)), 0U, 0U, 4U, _S12.Origin_0, _S12.TMin_0, _S12.Direction_0, _S12.TMax_0, (0)); uint _S13 = calcValue_0(hitObj_1); - uint r_5 = r_4 + _S13; - ((outputBuffer_0)._data[(uint(idx_0))]) = r_5; + uint r_4 = r_3 + _S13; + ((outputBuffer_0)._data[(uint(idx_0))]) = r_4; return; } |
