Move verify calls back into Context, using FlagsOrIsa.

With FlagsOrIsa, we can pass around the information we need to run
the verifier from the Context even when a TargetIsa is not available.
This commit is contained in:
Dan Gohman
2017-09-20 16:37:55 -07:00
parent f80ee7af39
commit ed6630dc02
4 changed files with 17 additions and 18 deletions

View File

@@ -40,8 +40,7 @@ impl SubTest for TestLICM {
comp_ctx.flowgraph();
comp_ctx.compute_loop_analysis();
comp_ctx.licm();
comp_ctx.verify(context.flags_or_isa()).map_err(|e| {
comp_ctx.licm(context.flags_or_isa()).map_err(|e| {
pretty_error(&comp_ctx.func, context.isa, Into::into(e))
})?;

View File

@@ -39,8 +39,7 @@ impl SubTest for TestSimpleGVN {
comp_ctx.func = func.into_owned();
comp_ctx.flowgraph();
comp_ctx.simple_gvn();
comp_ctx.verify(context.flags_or_isa()).map_err(|e| {
comp_ctx.simple_gvn(context.flags_or_isa()).map_err(|e| {
pretty_error(&comp_ctx.func, context.isa, Into::into(e))
})?;