X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fpolicies.lisp;h=78759f47fefa55d515ac6da93af31a7322b9652f;hb=a0c5831b3a74118cf41a848300200a1acdb48dcf;hp=4680f71daeee6a2a203b4537066fe5db90dd1caa;hpb=8a8a8922802460741d6f8f6c11d71b1f414cf3a7;p=sbcl.git diff --git a/src/compiler/policies.lisp b/src/compiler/policies.lisp index 4680f71..78759f4 100644 --- a/src/compiler/policies.lisp +++ b/src/compiler/policies.lisp @@ -15,7 +15,6 @@ (cond ((= safety 0) 0) ;; FIXME: It is duplicated in PROBABLE-TYPE-CHECK-P and in ;; some other places. - ((and (<= speed safety) (<= space safety) (<= compilation-speed safety)) @@ -23,7 +22,12 @@ (t 2)) ("no" "maybe" "fast" "full")) -(define-optimization-quality let-convertion +(define-optimization-quality check-tag-existence + (cond ((= safety 0) 0) + (t 3)) + ("no" "maybe" "yes" "yes")) + +(define-optimization-quality let-conversion (if (<= debug speed) 3 0) ("off" "maybe" "on" "on")) @@ -52,17 +56,34 @@ (define-optimization-quality stack-allocate-dynamic-extent (if (and (> (max speed space) (max debug safety)) - (< safety 3)) - 3 - 0) + (< safety 3)) + 3 + 0) ("no" "maybe" "yes" "yes")) +(define-optimization-quality stack-allocate-vector + (cond ((= stack-allocate-dynamic-extent 0) 0) + ((= safety 0) 3) + (t 2)) + ("no" "maybe" "one page" "yes")) + (define-optimization-quality float-accuracy 3 ("degraded" "full" "full" "full")) (define-optimization-quality insert-step-conditions - (if (> debug (max speed space)) + (if (> debug (max speed space compilation-speed)) debug 0) ("no" "no" "partial" "full")) + +(define-optimization-quality compute-debug-fun + debug + ("no" "minimal" "yes" "yes")) + +(define-optimization-quality preserve-single-use-debug-variables + (if (and (>= debug 2) + (< speed 3)) + 3 + 0) + ("no" "no" "no" "yes"))