mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-19 11:23:46 +00:00
Estimated hours taken: 1
Fix a bug in value numbering reported by Simon.
compiler/vn_block.m:
Restore a previously commented block of code, whose job is to force
the flushing of any stack slot that holds the saved value of a nondet
control register or stack slot. The rationale for this code used
to be the handling of cuts in nondet code; now it is the handling
of hijackings.
tests/hard_coded.{m,exp}:
A cut-down and inlined version of Simon's test case, which fails
without the change to vn_block and succeeds with it.
tests/hard_coded/Mmakefile:
Enable the new test case, and require that it be compiled with
value numbering.
2 lines
17 B
Plaintext
2 lines
17 B
Plaintext
test failed: OK.
|