ugly compiler note for %COERCE-CALLABLE-TO-FUN

Bug #1003265 reported by Nikodemus Siivola on 2012-05-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
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:%COERCE-CALLABLE-TO-FUN X)
  ;
  ; 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.

Douglas Katzman (dougk) wrote :

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"

Douglas Katzman (dougk) on 2016-04-08
Changed in sbcl:
assignee: nobody → Douglas Katzman (dougk)
status: Triaged → Fix Committed
Stas Boukarev (stassats) on 2016-04-28
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers