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: Nov 22 2024 at 16:03 UTC