ugly compiler note for %COERCE-CALLABLE-TO-FUN
Bug #1003265 reported by
Nikodemus Siivola
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Wishlist
|
Douglas Katzman |
Bug Description
(defun foo (x)
(declare (optimize speed))
(funcall x))
gives
; in: DEFUN FOO
; (FUNCALL X)
; --> SB-C::%FUNCALL THE
; ==>
; (SB-KERNEL:
;
; note: unable to
; optimize
; because:
; optimize away possible call to FDEFINITION at runtime
where something along the lines of
; in: DEFUN FOO
; (FUNCALL X)
;
; note: unable to
; optimize away possible call to FDEFINITION at runtime
; because:
; X is not known to be a FUNCTION
would be more desirable.
Changed in sbcl: | |
assignee: | nobody → Douglas Katzman (dougk) |
status: | Triaged → Fix Committed |
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The efficiency note seems fine to me:
"; note: unable to optimize away possible call to FDEFINITION at runtime because: not known to be a function"