Files
mercury/tests/hard_coded/nondet_ctrl_vn.exp
Zoltan Somogyi 559d1ea5ce Fix a bug in value numbering reported by Simon.
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.
1998-08-26 07:52:01 +00:00

2 lines
17 B
Plaintext