C++: Use value numbering to better detect whether a write is certain.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-08-15 11:07:14 +01:00
parent fec9626fe7
commit f662cceb0b
3 changed files with 4 additions and 3 deletions

View File

@@ -732,7 +732,7 @@ void test_does_not_write_source_to_dereference()
{
int x;
does_not_write_source_to_dereference(&x);
sink(x); // $ ast,ir=733:7 SPURIOUS: ast,ir=726:11
sink(x); // $ ast=733:7 ir SPURIOUS: ast=726:11
}
void sometimes_calls_sink_eq(int x, int n) {