mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-01 04:10:18 +02:00
Merge remote-tracking branch 'origin/stable-2.0'
Conflicts: libguile/deprecated.c libguile/ports.c libguile/ports.h libguile/strports.c test-suite/tests/cse.test
This commit is contained in:
commit
0dd7c54075
26 changed files with 343 additions and 158 deletions
|
@ -266,4 +266,19 @@
|
|||
(let ((x (car y)))
|
||||
(cons x (car y)))
|
||||
(let (x) (_) ((primcall car (toplevel y)))
|
||||
(primcall cons (lexical x _) (lexical x _)))))
|
||||
(primcall cons (lexical x _) (lexical x _))))
|
||||
|
||||
;; Dominating expressions only provide predicates when evaluated in
|
||||
;; test context.
|
||||
(pass-if-cse
|
||||
(let ((t (car x)))
|
||||
(if (car x)
|
||||
'one
|
||||
'two))
|
||||
;; Actually this one should reduce in other ways, but this is the
|
||||
;; current reduction:
|
||||
(seq
|
||||
(primcall car (toplevel x))
|
||||
(if (primcall car (toplevel x))
|
||||
(const one)
|
||||
(const two)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue