From 41e7e565eb3dfa13562cbfa3e8641874c2c6d66c Mon Sep 17 00:00:00 2001 From: Sai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com> Date: Fri, 4 Apr 2025 14:12:27 -0400 Subject: 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 --- tests/autodiff/reverse-loop-simple.slang.expected.txt | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/autodiff/reverse-loop-simple.slang.expected.txt (limited to 'tests/autodiff/reverse-loop-simple.slang.expected.txt') diff --git a/tests/autodiff/reverse-loop-simple.slang.expected.txt b/tests/autodiff/reverse-loop-simple.slang.expected.txt new file mode 100644 index 000000000..76b7cf779 --- /dev/null +++ b/tests/autodiff/reverse-loop-simple.slang.expected.txt @@ -0,0 +1,6 @@ +type: float +8.000000 +0.013107 +0.000000 +0.000000 +0.000000 -- cgit v1.2.3