bytecodealliance / wasmtime

A fast and secure runtime for WebAssembly
https://wasmtime.dev/
Apache License 2.0
14.81k stars 1.24k forks source link

closes #2827: remove srclocs from bugpoint #8883

Open zleyyij opened 5 days ago

zleyyij commented 5 days ago

Prior conversation: https://github.com/bytecodealliance/wasmtime/issues/2827#issuecomment-2184904073

https://bytecodealliance.zulipchat.com/#narrow/stream/217117-cranelift/topic/Removing.20srclocs.20with.20bugpoint

This change removes sourcelocs from bugpoint output to make the reduced clif IR easier to read.

zleyyij commented 4 days ago

I refactored so that it's done in a manner similar to try_resolve_aliases.

try_resolve_aliases appears to be called twice, I don't know why this is, but I currently only have try_remove_sourcelocs called once.