mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
CSE effects analysis cleanup
* module/language/cps/cse.scm (compute-always-available-expressions): Use constant? instead of zero?, to avoid punching through the effects abstraction.
This commit is contained in:
parent
fb512cac6e
commit
466bdf7ee3
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ no dependencies and which cause no effects besides &type-check."
|
|||
(let lp ((n 0))
|
||||
(cond
|
||||
((< n (vector-length effects))
|
||||
(when (zero? (exclude-effects (vector-ref effects n) &type-check))
|
||||
(when (constant? (exclude-effects (vector-ref effects n) &type-check))
|
||||
(bitvector-set! out n #t))
|
||||
(lp (1+ n)))
|
||||
(else out)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue