News for hackers. Stuff that matters.
Re:Introducing a new, advanced Visual C++ code optimizer by cokernel_hacker on Thursday May 05, 2016 @05:11PM (#11639684)
Cool, good to know! Another interesting example is:

  bool f(bool b) {
    int x;
    try {
      if (b) {
        x = 2;
        throw 0;
      }
      x = 4;
      throw 0.0;
    } catch (...) {
    }
    return x & 1;
  }
Here, a phi is needed on the catch.

Out of curiosity, can you give details regarding how your EH representation looks like in SSA?

Re:Introducing a new, advanced Visual C++ code optimizer by gratilup on Sunday May 08, 2016 @04:37PM (#11655681)
The EH info looks the same when in SSA form - when building SSA the right PHIs are inserted for the values potentially defined in EH blocks.