[Mono-bugs] [Bug 55885][Wis] Changed - MCS generates bad code for switches on flags type enums

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 21 Mar 2004 23:50:39 -0500 (EST)


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 bmaurer@users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=55885

--- shadow/55885	2004-03-21 23:47:27.000000000 -0500
+++ shadow/55885.tmp.31817	2004-03-21 23:50:39.000000000 -0500
@@ -163,6 +163,17 @@
 `oh, look, 2^30 and 2^31 are pretty close, lets make them a block'
 
 ------- Additional Comments From bmaurer@users.sf.net  2004-03-21 23:47 -------
 Created an attachment (id=7047)
 patcheypoo
 
+
+------- Additional Comments From bmaurer@users.sf.net  2004-03-21 23:50 -------
+Changelogeypoo:
+
+* statement.cs:
+Before, two switch blocks would be merged if the total size of the
+blocks (end_item - begin_item + 1) was less than two times the
+combined sizes of the blocks.
+
+Now, it will only merge if after the merge at least half of the slots
+are filled.