From 462589f69859354a9c623cad9015821e769beecb Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 21 Jul 2017 19:09:10 -0400 Subject: Fix a couple terrible optimizer bugs Just because an expression is always true or false, doesn't mean we can execute it more often than it otherwise would be, unless it's also pure. But that's equivalent to being identically -true/-false, so just check that. --- tests/test_or_purity.out | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 tests/test_or_purity.out (limited to 'tests/test_or_purity.out') diff --git a/tests/test_or_purity.out b/tests/test_or_purity.out new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3