Commit Graph

1 Commits

Author SHA1 Message Date
Fergus Henderson
9b75effd32 Enable loop invariant hoisting for goals that have no input arguments.
Estimated hours taken: 2
Branches: main

Enable loop invariant hoisting for goals that have no input arguments.

compiler/loop_inv.m:
	Delete the code which was explicitly disable loop invariant
	hoisting for "const goals", i.e. goals that have no input arguments.
	(Why was this code there in the first place?)
	Instead, add some code to prevent loop invariant hoisting for
	goals that cannot succeed.

tests/hard_coded/Mmakefile:
	Enable loop_inv_test1, since we now pass it.

tests/hard_coded/loop_inv_test1.exp:
	New file, containing the expected output for this test.

tests/hard_coded/loop_inv_test1.m:
	Delete the comment which said that we don't pass this test.
2004-02-10 09:33:06 +00:00