Skip to content

Commit 5b67aea

Browse files
committed
Remove special lowering of ' in *, /, and \ expressions to A[c]_(mul|ldiv|rdiv)_B[c].
1 parent 464bb63 commit 5b67aea

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

src/julia-syntax.scm

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,22 +1515,6 @@
15151515
(kwcall-unless-empty f pa kw-container kw-container)
15161516
`(call (call (core kwfunc) ,f) ,kw-container ,f ,@pa)))))
15171517

1518-
;; convert e.g. A'*B to Ac_mul_B(A,B)
1519-
(define (expand-transposed-op e ops)
1520-
(let ((a (caddr e))
1521-
(b (cadddr e)))
1522-
(cond ((ctrans? a)
1523-
(if (ctrans? b)
1524-
`(call ,(aref ops 0) #;Ac_mul_Bc ,(expand-forms (cadr a))
1525-
,(expand-forms (cadr b)))
1526-
`(call ,(aref ops 1) #;Ac_mul_B ,(expand-forms (cadr a))
1527-
,(expand-forms b))))
1528-
((ctrans? b)
1529-
`(call ,(aref ops 2) #;A_mul_Bc ,(expand-forms a)
1530-
,(expand-forms (cadr b))))
1531-
(else
1532-
`(call ,(cadr e) ,(expand-forms a) ,(expand-forms b))))))
1533-
15341518
;; convert `a+=b` to `a=a+b`
15351519
(define (expand-update-operator- op op= lhs rhs declT)
15361520
(let ((e (remove-argument-side-effects lhs)))
@@ -2212,19 +2196,6 @@
22122196
((and (eq? f '^) (length= e 4) (integer? (cadddr e)))
22132197
(expand-forms
22142198
`(call (top literal_pow) ^ ,(caddr e) (call (call (core apply_type) (top Val) ,(cadddr e))))))
2215-
2216-
((and (eq? f '*) (length= e 4))
2217-
(expand-transposed-op
2218-
e
2219-
#(Ac_mul_Bc Ac_mul_B A_mul_Bc)))
2220-
((and (eq? f '/) (length= e 4))
2221-
(expand-transposed-op
2222-
e
2223-
#(Ac_rdiv_Bc Ac_rdiv_B A_rdiv_Bc)))
2224-
((and (eq? f '\\) (length= e 4))
2225-
(expand-transposed-op
2226-
e
2227-
#(Ac_ldiv_Bc Ac_ldiv_B A_ldiv_Bc)))
22282199
(else
22292200
(map expand-forms e))))
22302201
(map expand-forms e)))

0 commit comments

Comments
 (0)