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

Bug #1003265 reported by Nikodemus Siivola
6
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:%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.

Tags: aesthetics
Revision history for this message
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)
Changed in sbcl:
assignee: nobody → Douglas Katzman (dougk)
status: Triaged → Fix Committed
Stas Boukarev (stassats)
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.