Hi,
I'm wondering if there is any tool to check a specific rule is triggered during mid-end optimization with ISLE ruleset, or see what rules are triggered.
Otherwise, just short guidance which part to modify/update to see which rules are fired will be appreciated.
Thanks!
That's a great question -- I've hacked this up locally before by adding a println to each rule right-hand side body generated by islec, but that's not very usable. It would be a useful feature for someone to add tracing or stats/counters per case!
we should probably add a feature to the isle crate to emit log::trace!(...) incovations for each LHS predicate part and for log::debug!(...)s for each RHS that actually gets matched and then plumb that through into a cranelift/wasmtime feature
I can file an issue
fitzgen (he/him) said:
I can file an issue
https://github.com/bytecodealliance/wasmtime/issues/11971
Thanks for writing that out!
Thanks for the follow-ups!
Last updated: Dec 06 2025 at 07:03 UTC