Selaa lähdekoodia

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

Ficture Seven 6 vuotta sitten
vanhempi
sitoutus
71dbb38b9a
1 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  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);