[Mono-bugs] [Bug 43586][Nor] New - branch optimization problem

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 23 May 2003 13:46:52 -0400 (EDT)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by vargaz@freemail.hu.


--- shadow/43586	Fri May 23 13:46:51 2003
+++ shadow/43586.tmp.16140	Fri May 23 13:46:51 2003
@@ -0,0 +1,29 @@
+Bug#: 43586
+Product: Mono/Runtime
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: vargaz@freemail.hu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: branch optimization problem
+   The attached testcase goes intro an infinite loop when running under
+mini. This is because the generated code contains a 'jmp 0' statement.
+I think the problem is with the recent changes to optimize_branches ().
+I looked at the code, but can't understand what it does. When detecting
+an A->B->C branch, it should:
+- set A->out_bb[0] to C
+- remove A from the in_bb list of B
+- add A to the in_bb list of C