commit | fc3f659aa9c312661bf2a4a63643e40fbebda338 | [log] [tgz] |
---|---|---|
author | Jason Ekstrand <jason.ekstrand@intel.com> | Mon Jan 11 15:33:41 2016 -0800 |
committer | Jason Ekstrand <jason.ekstrand@intel.com> | Mon Jan 11 15:33:44 2016 -0800 |
tree | 3a11a39e3e073703dd372b4a2b02a2138cbe843d | |
parent | c974b94578d558a88228011090d7edc9421ece46 [diff] |
nir/vars_to_ssa: Add phi sources for unreachable predecessors It is possible to end up with unreachable blocks if, for instance, you have an "if (...) { break; } else { continue; } unreachable()". In this case, the unreachable block does not show up in the dominance tree so it never gets visited. Instead, we go and visit all of those in follow-on pass.