Browse Source

* better DFA debugging information

git-svn-id: trunk@25975 -
florian 11 years ago
parent
commit
2fc4a7fdd7
1 changed files with 5 additions and 1 deletions
  1. 5 1
      compiler/optdfa.pas

+ 5 - 1
compiler/optdfa.pas

@@ -189,7 +189,11 @@ unit optdfa;
             }
             }
 {$ifdef DEBUG_DFA}
 {$ifdef DEBUG_DFA}
             if not(changed) and b then
             if not(changed) and b then
-              writeln('Another DFA pass caused by: ',nodetype2str[n.nodetype],'(',n.fileinfo.line,',',n.fileinfo.column,')');
+              begin
+                writeln('Another DFA pass caused by: ',nodetype2str[n.nodetype],'(',n.fileinfo.line,',',n.fileinfo.column,')');
+                write('  Life info set was:     ');PrintDFASet(Output,n.optinfo^.life);writeln;
+                write('  Life info set will be: ');PrintDFASet(Output,l);writeln;
+              end;
 {$endif DEBUG_DFA}
 {$endif DEBUG_DFA}
 
 
             changed:=changed or b;
             changed:=changed or b;