Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lots of compiler notes in lapack-csd #141

Open
stylewarning opened this issue Sep 14, 2021 · 1 comment
Open

lots of compiler notes in lapack-csd #141

stylewarning opened this issue Sep 14, 2021 · 1 comment

Comments

@stylewarning
Copy link
Member

a bit of a code smell:

; file: magicl/src/extensions/lapack/lapack-csd.lisp
; in: DEFMETHOD CSD-2X2-BASIC (MATRIX/COMPLEX-DOUBLE-FLOAT T T)
;     (ABS MAGICL-LAPACK::A1)
; 
; note: unable to
;   optimize
; due to type uncertainty:
;   The first argument is a SB-ALIEN-INTERNALS:ALIEN-VALUE, not a (SB-ALIEN:ALIEN
;                                                                  (* T)).
; 
; note: unable to optimize because: can't tell function type at compile time

;     (PHASE MAGICL-LAPACK::A1)
; 
; note: unable to
;   optimize
; due to type uncertainty:
;   The first argument is a SB-ALIEN-INTERNALS:ALIEN-VALUE, not a (SB-ALIEN:ALIEN
;                                                                  (* T)).
; 
; note: unable to optimize because: can't tell function type at compile time

;     (CIS (PHASE MAGICL-LAPACK::A1))
; 
; note: unable to
;   optimize
; due to type uncertainty:
;   The first argument is a SB-ALIEN-INTERNALS:ALIEN-VALUE, not a (SB-ALIEN:ALIEN
;                                                                  (* T)).
; 
; note: unable to optimize because: can't tell function type at compile time
; 
; note: unable to
;   optimize
; due to type uncertainty:
;   The first argument is a SB-ALIEN-INTERNALS:ALIEN-VALUE, not a (SB-ALIEN:ALIEN
;                                                                  (* T)).
; 
; note: unable to optimize because: can't tell function type at compile time

;     (ABS MAGICL-LAPACK::A2)
; 
; note: unable to
;   optimize
; due to type uncertainty:
;   The first argument is a SB-ALIEN-INTERNALS:ALIEN-VALUE, not a (SB-ALIEN:ALIEN
;                                                                  (* T)).
; 
; note: unable to optimize because: can't tell function type at compile time

;     (PHASE MAGICL-LAPACK::A2)
; 
; note: unable to
;   optimize
; due to type uncertainty:
;   The first argument is a SB-ALIEN-INTERNALS:ALIEN-VALUE, not a (SB-ALIEN:ALIEN
;                                                                  (* T)).
; 
; note: unable to optimize because: can't tell function type at compile time

;     (CIS (PHASE MAGICL-LAPACK::A2))
; 
; note: unable to
;   optimize
; due to type uncertainty:
;   The first argument is a SB-ALIEN-INTERNALS:ALIEN-VALUE, not a (SB-ALIEN:ALIEN
;                                                                  (* T)).
; 
; note: unable to optimize because: can't tell function type at compile time
; 
; note: unable to
;   optimize
; due to type uncertainty:
;   The first argument is a SB-ALIEN-INTERNALS:ALIEN-VALUE, not a (SB-ALIEN:ALIEN
;                                                                  (* T)).
; 
; note: unable to optimize because: can't tell function type at compile time

;     (ATAN MAGICL-LAPACK::S MAGICL-LAPACK::C)
; 
; note: unable to
;   optimize
; due to type uncertainty:
;   The first argument is a SB-ALIEN-INTERNALS:ALIEN-VALUE, not a (SB-ALIEN:ALIEN
;                                                                  (* T)).
; 
; note: unable to optimize because: can't tell function type at compile time

;     (CIS (PHASE MAGICL-LAPACK::A2))
; 
; note: could not stack allocate: (CIS (PHASE A2))

;     (ABS MAGICL-LAPACK::A2)
; 
; note: could not stack allocate: (ABS A2)

;     (CIS (PHASE MAGICL-LAPACK::A1))
; 
; note: could not stack allocate: (CIS (PHASE A1))

;     (ABS MAGICL-LAPACK::A1)
; 
; note: could not stack allocate: (ABS A1)
; 
; note: doing SAP to pointer coercion (cost 20), for:
;       the second argument of INIT-SLOT
; 
; note: doing float to pointer coercion (cost 13)
; 
; note: doing float to pointer coercion (cost 13)

;     (PHASE MAGICL-LAPACK::A1)
; 
; note: doing SAP to pointer coercion (cost 20), for:
;       the second argument of INIT-SLOT
; 
; note: doing float to pointer coercion (cost 13)
; 
; note: doing float to pointer coercion (cost 13)

;     (CIS (PHASE MAGICL-LAPACK::A1))
; 
; note: doing SAP to pointer coercion (cost 20), for:
;       the second argument of INIT-SLOT
; 
; note: doing SAP to pointer coercion (cost 20), for:
;       the second argument of INIT-SLOT

;     (ABS MAGICL-LAPACK::A2)
; 
; note: doing SAP to pointer coercion (cost 20), for:
;       the second argument of INIT-SLOT
; 
; note: doing float to pointer coercion (cost 13)
; 
; note: doing float to pointer coercion (cost 13)

;     (PHASE MAGICL-LAPACK::A2)
; 
; note: doing SAP to pointer coercion (cost 20), for:
;       the second argument of INIT-SLOT
; 
; note: doing float to pointer coercion (cost 13)
; 
; note: doing float to pointer coercion (cost 13)

;     (CIS (PHASE MAGICL-LAPACK::A2))
; 
; note: doing SAP to pointer coercion (cost 20), for:
;       the second argument of INIT-SLOT
; 
; note: doing SAP to pointer coercion (cost 20), for:
;       the second argument of INIT-SLOT

;     (ATAN MAGICL-LAPACK::S MAGICL-LAPACK::C)
; 
; note: doing SAP to pointer coercion (cost 20), for:
;       the second argument of INIT-SLOT

; processing (DEFMETHOD LAPACK-CSD ...)
; processing (DEFMETHOD CSD-EXTENSION ...)
@kchanqvq
Copy link

Do you have any idea what are those ALEIN-VALUE thingies? I'm also encountering them when optimizing a floating-point program.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants