jameysharp edited PR #8005.
elliottt submitted PR review.
jameysharp merged PR #8005.
scottmcm commented on PR #8005:
Oops! Sorry for the mess here.
However, we've decided that checking whether the rule is actually an improvement is not desirable. In general, that should be the job of the cost function. Blindly adding equivalent expressions gives us more opportunities for other rules to fire, and we have global recursion and growth limits to keep the process from going too wild.
Good to see the new guidance for this, since it had been uncertain back when I first started doing these rules in https://github.com/bytecodealliance/wasmtime/pull/7693#discussion_r1430497487
jameysharp commented on PR #8005:
Yeah, we're all still figuring out how best to use this egraph optimizer. The best we can do is keep trying things out, and I appreciate your efforts to do that!
Last updated: Nov 22 2024 at 17:03 UTC