jobhdez
Joined 6 years ago
Karma
36
Submissions
45
Member since
Oct 4
I built a little linear algebra interpreter. What do you think?
View on Hacker NewsJoined 6 years ago
Perhaps you work on llvm or something professionally?
But yeah if you can please provide support for your view. Thanks
```
p = a + b
q = p-c
p = q * d
```
Ssa:
```
p1 = a+ b
q1= p1 - c
p2 = q1 * d
```
Given the above examples how is it not straightforward to use ssa instead of three address code using what the dragon book teaches? What is wrong with the above examples?
In fact section 6.2.4 in the dragon book it says:
“Two distinctive aspects distinguish SSA from three-address code. The first is that all assignments in SSA are to variables with distinct names; hence the term static single-assigment.” The second one is that ssa uses a function to combine two definitions