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:
@@ -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))
|
||||
})?;
|
||||
|
||||
|
||||
@@ -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))
|
||||
})?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user