fitzgen opened Issue #1702:
Some
MatchOps subsume others. For example,IsPowerOfTwochecks that some value is known to be a constant value that is a power of two, andIsConstchecks whether a value is known to be a constant. Therefore, it doesn't make sense to have a sequence ofMatchOps that includes bothIsPowerOfTwoandIsConstsince the former subsumes the latter.We should add a micro pass to the peepmatic compilation pipeline to remove subsumed match operations. This will result in smaller and faster-to-interpret generated automata.
fitzgen labeled Issue #1702:
Some
MatchOps subsume others. For example,IsPowerOfTwochecks that some value is known to be a constant value that is a power of two, andIsConstchecks whether a value is known to be a constant. Therefore, it doesn't make sense to have a sequence ofMatchOps that includes bothIsPowerOfTwoandIsConstsince the former subsumes the latter.We should add a micro pass to the peepmatic compilation pipeline to remove subsumed match operations. This will result in smaller and faster-to-interpret generated automata.
Last updated: Dec 06 2025 at 06:05 UTC