MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / try_resolve_aliases

Function try_resolve_aliases

cranelift/src/bugpoint.rs:790–796  ·  view source on GitHub ↗

Resolve aliases only if function still crashes after this.

(context: &mut CrashCheckContext, func: &mut Function)

Source from the content-addressed store, hash-verified

788
789/// Resolve aliases only if function still crashes after this.
790fn try_resolve_aliases(context: &mut CrashCheckContext, func: &mut Function) {
791 let mut func_with_resolved_aliases = func.clone();
792 func_with_resolved_aliases.dfg.resolve_all_aliases();
793 if let CheckResult::Crash(_) = context.check_for_crash(&func_with_resolved_aliases) {
794 *func = func_with_resolved_aliases;
795 }
796}
797
798/// Remove sourcelocs if the function still crashes after they are removed, to make the reduced clif IR easier to read.
799fn try_remove_srclocs(context: &mut CrashCheckContext, func: &mut Function) {

Callers 1

reduceFunction · 0.85

Calls 3

resolve_all_aliasesMethod · 0.80
check_for_crashMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected