aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Corallo2020-07-08 20:57:20 +0100
committerAndrea Corallo2020-07-09 16:23:34 +0100
commit02bf2e08e27a00cde891a20affe96653fe44c7da (patch)
tree7d313dd798a6df126288385ed0d5ae54b75b87ea
parent9aaca828fc6a20d99e72c98e79a3b789827b25e1 (diff)
downloademacs-02bf2e08e27a00cde891a20affe96653fe44c7da.tar.gz
emacs-02bf2e08e27a00cde891a20affe96653fe44c7da.zip
* Disable ipa-pure in comp-tests-tco
* test/src/comp-tests.el (comp-tests-tco): Disable ipa-pure to check effectively for tail recursion elimination.
-rw-r--r--test/src/comp-tests.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el
index f4bc8156d35..8f0b90f8e01 100644
--- a/test/src/comp-tests.el
+++ b/test/src/comp-tests.el
@@ -629,6 +629,9 @@ CHECKER should always return nil to have a pass."
629(ert-deftest comp-tests-tco () 629(ert-deftest comp-tests-tco ()
630 "Check for tail recursion elimination." 630 "Check for tail recursion elimination."
631 (let ((comp-speed 3) 631 (let ((comp-speed 3)
632 ;; Disable ipa-pure otherwise `comp-tests-tco-f' gets
633 ;; optimized-out.
634 (comp-disabled-passes '(comp-ipa-pure))
632 (comp-post-pass-hooks '((comp-tco comp-tests-tco-checker) 635 (comp-post-pass-hooks '((comp-tco comp-tests-tco-checker)
633 (comp-final comp-tests-tco-checker)))) 636 (comp-final comp-tests-tco-checker))))
634 (eval '(defun comp-tests-tco-f (a b count) 637 (eval '(defun comp-tests-tco-f (a b count)