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

Method remove_constant_phis

cranelift/codegen/src/context.rs:273–280  ·  view source on GitHub ↗

Perform constant-phi removal on the function.

(
        &mut self,
        fisa: FOI,
    )

Source from the content-addressed store, hash-verified

271
272 /// Perform constant-phi removal on the function.
273 pub fn remove_constant_phis<'a, FOI: Into<FlagsOrIsa<'a>>>(
274 &mut self,
275 fisa: FOI,
276 ) -> CodegenResult<()> {
277 do_remove_constant_phis(&mut self.func, &mut self.domtree);
278 self.verify_if(fisa)?;
279 Ok(())
280 }
281
282 /// Perform NaN canonicalizing rewrites on the function.
283 pub fn canonicalize_nans(&mut self, isa: &dyn TargetIsa) -> CodegenResult<()> {

Callers 1

optimizeMethod · 0.80

Calls 3

do_remove_constant_phisFunction · 0.85
OkFunction · 0.85
verify_ifMethod · 0.80

Tested by

no test coverage detected