summaryrefslogtreecommitdiffstats
path: root/tests/autodiff/reverse-continue-loop.slang
diff options
context:
space:
mode:
authorSai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com>2025-04-04 14:12:27 -0400
committerGitHub <noreply@github.com>2025-04-04 18:12:27 +0000
commit41e7e565eb3dfa13562cbfa3e8641874c2c6d66c (patch)
treef3ba43df8fe2a4c8ca4a63c9e9f577d7e0f7a028 /tests/autodiff/reverse-continue-loop.slang
parent83a42cb76feb1f702ff730040f359cabc01c571a (diff)
Add a loop analysis step to infer the exit values of loop phi parameters. (#6696)
* Initial loop analysis pass * More changes for a single-pass implication propagation * Update slang-ir-autodiff-loop-analysis.cpp * Cleanup + new system for loop analysis * Fixup bugs in loop analysis * Remove some relation types to simplify the analysis. Add test * Remove unused * Address comments * Fix issue with continue loops * Update reverse-loop-exit-value-inference-1.slang * Update reverse-continue-loop.slang
Diffstat (limited to 'tests/autodiff/reverse-continue-loop.slang')
-rw-r--r--tests/autodiff/reverse-continue-loop.slang3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/autodiff/reverse-continue-loop.slang b/tests/autodiff/reverse-continue-loop.slang
index 51f17b611..77bfb358c 100644
--- a/tests/autodiff/reverse-continue-loop.slang
+++ b/tests/autodiff/reverse-continue-loop.slang
@@ -9,14 +9,13 @@ RWStructuredBuffer<float> outputBuffer;
typedef DifferentialPair<float> dpfloat;
typedef float.Differential dfloat;
-//CHK-DAG: note: checkpointing context of 24 bytes associated with function: 'test_loop_with_continue'
+//CHK-DAG: note: checkpointing context of 20 bytes associated with function: 'test_loop_with_continue'
[BackwardDifferentiable]
float test_loop_with_continue(float y)
{
//CHK-DAG: note: 20 bytes (FixedArray<float, 5> ) used to checkpoint the following item:
float t = y;
- //CHK-DAG: note: 4 bytes (int32_t) used to checkpoint the following item:
for (int i = 0; i < 3; i++)
{
if (t > 4.0)