summaryrefslogtreecommitdiff
path: root/lib/compiler/test/warnings_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <bjorn@erlang.org>2020-04-04 07:27:33 +0200
committerBjörn Gustavsson <bjorn@erlang.org>2020-04-08 05:48:22 +0200
commit952e9d6a27497d558b345309f8e63d4ab9e3f0a3 (patch)
treebd091e9e286b4fcd1db1a13d733ec0ae98b9d417 /lib/compiler/test/warnings_SUITE.erl
parent9aeb652643e43b9170e030873cda41e8134ef75d (diff)
downloaderlang-952e9d6a27497d558b345309f8e63d4ab9e3f0a3.tar.gz
sys_core_fold: Remove ineffective optimization of try in guards
The opt_guard_try optimization will remove calls to pure BIFs in a `try` if the outcome of the call does not matter. This optimization was very rarely successfully applied (only 34 times in the compiler test suite), and it is likely that the SSA passes will do the optimization just as well.
Diffstat (limited to 'lib/compiler/test/warnings_SUITE.erl')
-rw-r--r--lib/compiler/test/warnings_SUITE.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compiler/test/warnings_SUITE.erl b/lib/compiler/test/warnings_SUITE.erl
index 83ec54d40f..7fdc08eea2 100644
--- a/lib/compiler/test/warnings_SUITE.erl
+++ b/lib/compiler/test/warnings_SUITE.erl
@@ -270,6 +270,7 @@ bad_arith(Config) when is_list(Config) ->
{3,sys_core_fold,{eval_failure,badarith}},
{9,sys_core_fold,nomatch_guard},
{9,sys_core_fold,{eval_failure,badarith}},
+ {9,sys_core_fold,{no_effect,{erlang,is_integer,1}}},
{10,sys_core_fold,nomatch_guard},
{10,sys_core_fold,{eval_failure,badarith}},
{15,sys_core_fold,{eval_failure,badarith}}