From 71dbb38b9a56eff96eb6a97e299041cd4126e777 Mon Sep 17 00:00:00 2001 From: Ficture Seven Date: Sat, 2 May 2020 01:15:55 +0400 Subject: [PATCH] Do not compute dominance information when not in SSA (#1176) --- ARMeilleure/Translation/Compiler.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ARMeilleure/Translation/Compiler.cs b/ARMeilleure/Translation/Compiler.cs index c2a2c746..d27c3cce 100644 --- a/ARMeilleure/Translation/Compiler.cs +++ b/ARMeilleure/Translation/Compiler.cs @@ -22,8 +22,11 @@ namespace ARMeilleure.Translation { Logger.StartPass(PassName.Dominance); - Dominance.FindDominators(cfg); - Dominance.FindDominanceFrontiers(cfg); + if ((options & CompilerOptions.SsaForm) != 0) + { + Dominance.FindDominators(cfg); + Dominance.FindDominanceFrontiers(cfg); + } Logger.EndPass(PassName.Dominance);