Re: [patch] Split up expand_case

2012-07-04 Thread Richard Guenther
On Wed, Jul 4, 2012 at 8:42 AM, Steven Bosscher wrote: > Hello, > > The attached patch splits out the code generation bits from > expand_case to two new functions, emit_case_decision_tree and > emit_case_dispatch_table. > > I also added some bits of new code to help me better understand how > the

[patch] Split up expand_case

2012-07-03 Thread Steven Bosscher
Hello, The attached patch splits out the code generation bits from expand_case to two new functions, emit_case_decision_tree and emit_case_dispatch_table. I also added some bits of new code to help me better understand how the code generation for decision trees works (I took dump_case_nodes taken