Эх сурвалжийг харах

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

Ficture Seven 6 жил өмнө
parent
commit
71dbb38b9a

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