C++: Include phi read nodes in SSA.

There's a small fix to the mapping from 'global def -> use'.

Finally, this commit also accepts a test failure related to new missing
types for phi nodes. The fix for that is in the next commit.
This commit is contained in:
Mathias Vorreiter Pedersen
2023-03-02 22:38:43 +00:00
parent b3f92fcf0f
commit 2963dc1cb1
4 changed files with 50 additions and 28 deletions

View File

@@ -626,5 +626,5 @@ void test_def_via_phi_read(bool b)
use(buffer);
}
intPointerSource(buffer);
sink(buffer); // $ ast MISSING: ir
sink(buffer); // $ ast,ir
}

View File

@@ -1,3 +1,8 @@
failures
astTypeBugs
irTypeBugs
| test.cpp:15:3:15:6 | test.cpp:15:3:15:6 | test.cpp:15:3:15:6 | Phi |
| test.cpp:43:10:43:20 | test.cpp:43:10:43:20 | test.cpp:43:10:43:20 | Phi |
| test.cpp:43:10:43:20 | test.cpp:43:10:43:20 | test.cpp:43:10:43:20 | Phi |
| test.cpp:628:3:628:18 | test.cpp:628:3:628:18 | test.cpp:628:3:628:18 | Phi |
| test.cpp:628:3:628:18 | test.cpp:628:3:628:18 | test.cpp:628:3:628:18 | Phi |