aboutsummaryrefslogtreecommitdiffhomepage
path: root/interp/interp_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'interp/interp_test.go')
-rw-r--r--interp/interp_test.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/interp/interp_test.go b/interp/interp_test.go
index fc567af20..cac565087 100644
--- a/interp/interp_test.go
+++ b/interp/interp_test.go
@@ -77,12 +77,9 @@ func runTest(t *testing.T, pathPrefix string) {
}
// Run some cleanup passes to get easy-to-read outputs.
- pm := llvm.NewPassManager()
- defer pm.Dispose()
- pm.AddGlobalOptimizerPass()
- pm.AddDeadStoreEliminationPass()
- pm.AddAggressiveDCEPass()
- pm.Run(mod)
+ to := llvm.NewPassBuilderOptions()
+ defer to.Dispose()
+ mod.RunPasses("globalopt,dse,adce", llvm.TargetMachine{}, to)
// Read the expected output IR.
out, err := os.ReadFile(pathPrefix + ".out.ll")