Skip to content
This repository has been archived by the owner on Feb 3, 2019. It is now read-only.

Def propagation #15

Closed
arrdem opened this issue Jun 20, 2014 · 1 comment
Closed

Def propagation #15

arrdem opened this issue Jun 20, 2014 · 1 comment
Assignees

Comments

@arrdem
Copy link
Owner

arrdem commented Jun 20, 2014

Consider

(def foo (fn [x] x))
(def bar foo)

Uses of bar can trivially be rewritten to be uses of foo, and this would allow for the elimination of bar as a definition entirely in favor of foo. This is a special case of constant folding, but a valuable one as it allows for the elimination of var aliases and subsequently permits inlining, static arity resolution and other tricks.

@arrdem arrdem self-assigned this Jun 20, 2014
@arrdem
Copy link
Owner Author

arrdem commented Jun 20, 2014

Closed as this is a goal of #10

@arrdem arrdem closed this as completed Jun 20, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant