diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2017-07-21 19:09:10 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2017-07-21 19:09:10 -0400 |
commit | 462589f69859354a9c623cad9015821e769beecb (patch) | |
tree | 805ab7e0989617098c9311e0386963b37142084c /tests | |
parent | 4a245d3885f99169649cc45e2d1abe606c249d22 (diff) | |
download | bfs-462589f69859354a9c623cad9015821e769beecb.tar.xz |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_and_purity.out | 0 | ||||
-rw-r--r-- | tests/test_or_purity.out | 0 |
2 files changed, 0 insertions, 0 deletions
diff --git a/tests/test_and_purity.out b/tests/test_and_purity.out new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/test_and_purity.out diff --git a/tests/test_or_purity.out b/tests/test_or_purity.out new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/test_or_purity.out |