News for hackers. Stuff that matters.
Re:Single-Assignment C by guerrilla on Thursday December 26, 2019 @08:51PM (#21888476)
Re:Single-Assignment C by nn3 on Thursday December 26, 2019 @09:08PM (#21888553)
It actually is not. The compiler has no problems turning your imperative code into SSA on its own, and PHI functions are no problem for optimizers.

I guess it's just for readability and easier reasoning about the code.

Re:Single-Assignment C by guerrilla on Thursday December 26, 2019 @11:53PM (#21889290)
Your claim is that not having to do something is not easier than doing it? Ok.
Re:Single-Assignment C by vardump on Friday December 27, 2019 @10:06AM (#21891703)
The point is that there's absolutely no difference for a compiler that uses SSA form. So it's not like it has to do something extra.
Re:Single-Assignment C by masklinn on Friday December 27, 2019 @04:03AM (#21890082)
Any MFA code is trivially converted to SSA and that's pretty much the first thing your compiler will do.

So doing SSA by hand makes no real difference to the compiler unless your compiler is so trivial it doesn't start by converting its input to SSA.

Re:Single-Assignment C by ternaryoperator on Friday December 27, 2019 @12:09AM (#21889369)
You're not the OP of the comment, who is a compiler writer (C, C++, D). I hope he'll weigh in with his rationale.