fitzgen opened Issue #1702:
Some
MatchOp
s subsume others. For example,IsPowerOfTwo
checks that some value is known to be a constant value that is a power of two, andIsConst
checks whether a value is known to be a constant. Therefore, it doesn't make sense to have a sequence ofMatchOp
s that includes bothIsPowerOfTwo
andIsConst
since 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
MatchOp
s subsume others. For example,IsPowerOfTwo
checks that some value is known to be a constant value that is a power of two, andIsConst
checks whether a value is known to be a constant. Therefore, it doesn't make sense to have a sequence ofMatchOp
s that includes bothIsPowerOfTwo
andIsConst
since 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 23 2024 at 13:07 UTC