Ver Fonte

Do not compute dominance information when not in SSA (#1176)

Ficture Seven há 6 anos atrás
pai
commit
71dbb38b9a
1 ficheiros alterados com 5 adições e 2 exclusões
  1. 5 2
      ARMeilleure/Translation/Compiler.cs

+ 5 - 2
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);