From 2226ae0bbbf2cbd5ea2da8aaaa04c9c466af56c3 Mon Sep 17 00:00:00 2001 From: winmad Date: Fri, 14 Apr 2023 11:36:19 -0700 Subject: Bugfix: compiler will run forever to eliminate dead code (#2809) * Add a test case that the compile will run forever * Fix. * fix. --------- Co-authored-by: Lifan Wu Co-authored-by: Yong He --- tests/autodiff/for-loop-eliminate-dead-code.slang.expected.txt | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/autodiff/for-loop-eliminate-dead-code.slang.expected.txt (limited to 'tests/autodiff/for-loop-eliminate-dead-code.slang.expected.txt') diff --git a/tests/autodiff/for-loop-eliminate-dead-code.slang.expected.txt b/tests/autodiff/for-loop-eliminate-dead-code.slang.expected.txt new file mode 100644 index 000000000..4465d8c34 --- /dev/null +++ b/tests/autodiff/for-loop-eliminate-dead-code.slang.expected.txt @@ -0,0 +1,4 @@ +type: float +0.000000 +0.000000 +0.000000 \ No newline at end of file -- cgit v1.2.3