Line data Source code
1 : /* If-elseif-else to switch conversion pass
2 : Copyright (C) 2020-2026 Free Software Foundation, Inc.
3 :
4 : This file is part of GCC.
5 :
6 : GCC is free software; you can redistribute it and/or modify
7 : it under the terms of the GNU General Public License as published by
8 : the Free Software Foundation; either version 3, or (at your option)
9 : any later version.
10 :
11 : GCC is distributed in the hope that it will be useful,
12 : but WITHOUT ANY WARRANTY; without even the implied warranty of
13 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 : GNU General Public License for more details.
15 :
16 : You should have received a copy of the GNU General Public License
17 : along with GCC; see the file COPYING3. If not see
18 : <http://www.gnu.org/licenses/>. */
19 :
20 : /* Algorithm of the pass runs in the following steps:
21 : a) We walk basic blocks in DOMINATOR order so that we first reach
22 : a first condition of a future switch.
23 : b) We follow false edges of a if-else-chain and we record chain
24 : of GIMPLE conditions. These blocks are only used for comparison
25 : of a common SSA_NAME and we do not allow any side effect.
26 : c) We remove all basic blocks (except first) of such chain and
27 : GIMPLE switch replaces the condition in the first basic block.
28 : d) We move all GIMPLE statements in the removed blocks into the
29 : first one. */
30 :
31 : #include "config.h"
32 : #include "system.h"
33 : #include "coretypes.h"
34 : #include "backend.h"
35 : #include "rtl.h"
36 : #include "tree.h"
37 : #include "gimple.h"
38 : #include "tree-pass.h"
39 : #include "ssa.h"
40 : #include "gimple-pretty-print.h"
41 : #include "fold-const.h"
42 : #include "gimple-iterator.h"
43 : #include "tree-cfg.h"
44 : #include "tree-dfa.h"
45 : #include "tree-cfgcleanup.h"
46 : #include "alias.h"
47 : #include "tree-ssa-loop.h"
48 : #include "diagnostic.h"
49 : #include "cfghooks.h"
50 : #include "tree-into-ssa.h"
51 : #include "cfganal.h"
52 : #include "dbgcnt.h"
53 : #include "target.h"
54 : #include "alloc-pool.h"
55 : #include "tree-switch-conversion.h"
56 : #include "tree-ssa-reassoc.h"
57 : #include "tree-ssa.h"
58 :
59 : using namespace tree_switch_conversion;
60 :
61 : struct condition_info
62 : {
63 : typedef auto_vec<std::pair<gphi *, tree>> mapping_vec;
64 :
65 4023847 : condition_info (gcond *cond, bool has_side_effect): m_cond (cond),
66 4023847 : m_bb (gimple_bb (cond)), m_forwarder_bb (NULL), m_ranges (),
67 4023847 : m_true_edge (NULL), m_false_edge (NULL),
68 4023847 : m_true_edge_phi_mapping (), m_false_edge_phi_mapping (),
69 4023847 : m_has_side_effect (has_side_effect)
70 : {
71 4023847 : m_ranges.create (0);
72 : }
73 :
74 : /* Recond PHI mapping for an original edge E and save these into
75 : vector VEC. */
76 : void record_phi_mapping (edge e, mapping_vec *vec);
77 :
78 : gcond *m_cond;
79 : basic_block m_bb;
80 : basic_block m_forwarder_bb;
81 : auto_vec<range_entry> m_ranges;
82 : edge m_true_edge;
83 : edge m_false_edge;
84 : mapping_vec m_true_edge_phi_mapping;
85 : mapping_vec m_false_edge_phi_mapping;
86 : bool m_has_side_effect;
87 : };
88 :
89 : /* Recond PHI mapping for an original edge E and save these into vector VEC. */
90 :
91 : void
92 3893206 : condition_info::record_phi_mapping (edge e, mapping_vec *vec)
93 : {
94 4726018 : for (gphi_iterator gsi = gsi_start_phis (e->dest); !gsi_end_p (gsi);
95 832812 : gsi_next (&gsi))
96 : {
97 832812 : gphi *phi = gsi.phi ();
98 832812 : tree arg = PHI_ARG_DEF_FROM_EDGE (phi, e);
99 832812 : vec->safe_push (std::make_pair (phi, arg));
100 : }
101 3893206 : }
102 :
103 : /* Master structure for one if to switch conversion candidate. */
104 :
105 : struct if_chain
106 : {
107 : /* Default constructor. */
108 1903053 : if_chain (): m_entries ()
109 : {
110 3806106 : m_entries.create (2);
111 : }
112 :
113 : /* Default destructor. */
114 1903053 : ~if_chain ()
115 : {
116 1524 : m_entries.release ();
117 1903053 : }
118 :
119 : /* Verify that all case ranges do not overlap. */
120 : bool check_non_overlapping_cases ();
121 :
122 : /* Return true when the switch can be expanded with a jump table or
123 : a bit test (at least partially). */
124 : bool is_beneficial ();
125 :
126 : /* If chain entries. */
127 : vec<condition_info *> m_entries;
128 : };
129 :
130 : /* Compare two case ranges by minimum value. */
131 :
132 : static int
133 276023 : range_cmp (const void *a, const void *b)
134 : {
135 276023 : const range_entry *re1 = *(const range_entry * const *) a;
136 276023 : const range_entry *re2 = *(const range_entry * const *) b;
137 :
138 276023 : return tree_int_cst_compare (re1->low, re2->low);
139 : }
140 :
141 : /* Verify that all case ranges do not overlap. */
142 :
143 : bool
144 36460 : if_chain::check_non_overlapping_cases ()
145 : {
146 36460 : auto_vec<range_entry *> all_ranges;
147 116470 : for (unsigned i = 0; i < m_entries.length (); i++)
148 163461 : for (unsigned j = 0; j < m_entries[i]->m_ranges.length (); j++)
149 83451 : all_ranges.safe_push (&m_entries[i]->m_ranges[j]);
150 :
151 36460 : all_ranges.qsort (range_cmp);
152 :
153 147184 : for (unsigned i = 0; i < all_ranges.length () - 1; i++)
154 : {
155 46405 : range_entry *left = all_ranges[i];
156 46405 : range_entry *right = all_ranges[i + 1];
157 46405 : if (tree_int_cst_le (left->low, right->low)
158 46405 : && tree_int_cst_le (right->low, left->high))
159 : return false;
160 : }
161 :
162 : return true;
163 36460 : }
164 :
165 : /* Compare clusters by minimum value. */
166 :
167 : static int
168 243241 : cluster_cmp (const void *a, const void *b)
169 : {
170 243241 : simple_cluster *sc1 = *(simple_cluster * const *) a;
171 243241 : simple_cluster *sc2 = *(simple_cluster * const *) b;
172 :
173 243241 : return tree_int_cst_compare (sc1->get_low (), sc2->get_high ());
174 : }
175 :
176 : /* Dump constructed CLUSTERS with prefix MESSAGE. */
177 :
178 : static void
179 28711 : dump_clusters (vec<cluster *> *clusters, const char *message)
180 : {
181 28711 : if (dump_file)
182 : {
183 24 : fprintf (dump_file, ";; %s: ", message);
184 119 : for (unsigned i = 0; i < clusters->length (); i++)
185 71 : (*clusters)[i]->dump (dump_file, dump_flags & TDF_DETAILS);
186 24 : fprintf (dump_file, "\n");
187 : }
188 28711 : }
189 :
190 : /* Return true when the switch can be expanded with a jump table or
191 : a bit test (at least partially). */
192 :
193 : bool
194 27187 : if_chain::is_beneficial ()
195 : {
196 27187 : profile_probability prob = profile_probability::uninitialized ();
197 :
198 27187 : auto_vec<cluster *> clusters;
199 27187 : clusters.create (m_entries.length ());
200 :
201 115253 : for (unsigned i = 0; i < m_entries.length (); i++)
202 : {
203 60879 : condition_info *info = m_entries[i];
204 125198 : for (unsigned j = 0; j < info->m_ranges.length (); j++)
205 : {
206 64319 : range_entry *range = &info->m_ranges[j];
207 64319 : basic_block bb = info->m_true_edge->dest;
208 64319 : bool has_forwarder = !info->m_true_edge_phi_mapping.is_empty ();
209 64319 : clusters.safe_push (new simple_cluster (range->low, range->high,
210 : NULL_TREE, bb, prob,
211 64319 : has_forwarder));
212 : }
213 : }
214 :
215 : /* Sort clusters and merge them. */
216 27187 : auto_vec<cluster *> filtered_clusters;
217 27187 : filtered_clusters.create (16);
218 27187 : clusters.qsort (cluster_cmp);
219 27187 : simple_cluster *left = static_cast<simple_cluster *> (clusters[0]);
220 27187 : filtered_clusters.safe_push (left);
221 :
222 64319 : for (unsigned i = 1; i < clusters.length (); i++)
223 : {
224 37132 : simple_cluster *right = static_cast<simple_cluster *> (clusters[i]);
225 37132 : tree type = TREE_TYPE (left->get_low ());
226 37132 : if (!left->m_has_forward_bb
227 25911 : && !right->m_has_forward_bb
228 24710 : && left->m_case_bb == right->m_case_bb)
229 : {
230 15036 : if (wi::eq_p (wi::to_wide (right->get_low ()) - wi::to_wide
231 22554 : (left->get_high ()), wi::one (TYPE_PRECISION (type))))
232 : {
233 1479 : left->set_high (right->get_high ());
234 1479 : delete right;
235 1479 : continue;
236 : }
237 : }
238 :
239 35653 : left = static_cast<simple_cluster *> (clusters[i]);
240 35653 : filtered_clusters.safe_push (left);
241 : }
242 :
243 27187 : dump_clusters (&filtered_clusters, "Canonical GIMPLE case clusters");
244 :
245 27187 : vec<cluster *> output
246 27187 : = jump_table_cluster::find_jump_tables (filtered_clusters);
247 54374 : bool r = output.length () < filtered_clusters.length ();
248 27187 : if (r)
249 : {
250 700 : dump_clusters (&output, "JT can be built");
251 700 : release_clusters (output);
252 700 : return true;
253 : }
254 : else
255 26487 : output.release ();
256 :
257 26487 : output = bit_test_cluster::find_bit_tests (filtered_clusters, 2);
258 52974 : r = output.length () < filtered_clusters.length ();
259 26487 : if (r)
260 824 : dump_clusters (&output, "BT can be built");
261 :
262 26487 : release_clusters (output);
263 26487 : return r;
264 27187 : }
265 :
266 : /* Build case label with MIN and MAX values of a given basic block DEST. */
267 :
268 : static tree
269 11112 : build_case_label (tree index_type, tree min, tree max, basic_block dest)
270 : {
271 11112 : if (min != NULL_TREE && index_type != TREE_TYPE (min))
272 224 : min = fold_convert (index_type, min);
273 11112 : if (max != NULL_TREE && index_type != TREE_TYPE (max))
274 224 : max = fold_convert (index_type, max);
275 :
276 11112 : tree label = gimple_block_label (dest);
277 21314 : return build_case_label (min, min == max ? NULL_TREE : max, label);
278 : }
279 :
280 : /* Compare two integer constants. */
281 :
282 : static int
283 114077 : label_cmp (const void *a, const void *b)
284 : {
285 114077 : const_tree l1 = *(const const_tree *) a;
286 114077 : const_tree l2 = *(const const_tree *) b;
287 :
288 114077 : return tree_int_cst_compare (CASE_LOW (l1), CASE_LOW (l2));
289 : }
290 :
291 : /* Convert a given if CHAIN into a switch GIMPLE statement. */
292 :
293 : static void
294 1524 : convert_if_conditions_to_switch (if_chain *chain)
295 : {
296 1524 : if (!dbg_cnt (if_to_switch))
297 0 : return;
298 :
299 1524 : auto_vec<tree> labels;
300 1524 : unsigned entries = chain->m_entries.length ();
301 1524 : condition_info *first_cond = chain->m_entries[0];
302 1524 : condition_info *last_cond = chain->m_entries[entries - 1];
303 :
304 1524 : edge default_edge = last_cond->m_false_edge;
305 1524 : basic_block default_bb = default_edge->dest;
306 :
307 1524 : gimple_stmt_iterator gsi = gsi_for_stmt (first_cond->m_cond);
308 1524 : tree index_type = TREE_TYPE (first_cond->m_ranges[0].exp);
309 8367 : for (unsigned i = 0; i < entries; i++)
310 : {
311 6843 : condition_info *info = chain->m_entries[i];
312 6843 : basic_block case_bb = info->m_true_edge->dest;
313 :
314 : /* Create a forwarder block if needed. */
315 6843 : if (!info->m_true_edge_phi_mapping.is_empty ())
316 : {
317 954 : info->m_forwarder_bb = split_edge (info->m_true_edge);
318 954 : case_bb = info->m_forwarder_bb;
319 : }
320 :
321 16431 : for (unsigned j = 0; j < info->m_ranges.length (); j++)
322 9588 : labels.safe_push (build_case_label (index_type,
323 9588 : info->m_ranges[j].low,
324 9588 : info->m_ranges[j].high,
325 : case_bb));
326 6843 : default_bb = info->m_false_edge->dest;
327 :
328 6843 : if (i == 0)
329 : {
330 1524 : remove_edge (first_cond->m_true_edge);
331 1524 : remove_edge (first_cond->m_false_edge);
332 : }
333 : else
334 5319 : delete_basic_block (info->m_bb);
335 :
336 6843 : make_edge (first_cond->m_bb, case_bb, 0);
337 : }
338 :
339 1524 : labels.qsort (label_cmp);
340 :
341 1524 : edge e = find_edge (first_cond->m_bb, default_bb);
342 1524 : if (e == NULL)
343 1524 : e = make_edge (first_cond->m_bb, default_bb, 0);
344 1524 : gswitch *s
345 1524 : = gimple_build_switch (first_cond->m_ranges[0].exp,
346 : build_case_label (index_type, NULL_TREE,
347 : NULL_TREE, default_bb),
348 : labels);
349 :
350 1524 : gsi_remove (&gsi, true);
351 1524 : gsi_insert_before (&gsi, s, GSI_NEW_STMT);
352 :
353 1524 : if (dump_file)
354 : {
355 10 : fprintf (dump_file, "Expanded into a new gimple STMT: ");
356 10 : print_gimple_stmt (dump_file, s, 0, TDF_SLIM);
357 10 : putc ('\n', dump_file);
358 : }
359 :
360 : /* Fill up missing PHI node arguments. */
361 16734 : for (unsigned i = 0; i < chain->m_entries.length (); ++i)
362 : {
363 6843 : condition_info *info = chain->m_entries[i];
364 8277 : for (unsigned j = 0; j < info->m_true_edge_phi_mapping.length (); ++j)
365 : {
366 1434 : std::pair<gphi *, tree> item = info->m_true_edge_phi_mapping[j];
367 1434 : add_phi_arg (item.first, item.second,
368 1434 : single_succ_edge (info->m_forwarder_bb),
369 : UNKNOWN_LOCATION);
370 : }
371 : }
372 :
373 : /* Fill up missing PHI nodes for the default BB. */
374 1823 : for (unsigned j = 0; j < last_cond->m_false_edge_phi_mapping.length (); ++j)
375 : {
376 299 : std::pair<gphi *, tree> item = last_cond->m_false_edge_phi_mapping[j];
377 299 : add_phi_arg (item.first, item.second, e, UNKNOWN_LOCATION);
378 : }
379 1524 : }
380 :
381 : /* Identify an index variable used in BB in a GIMPLE condition.
382 : Save information about the condition into CONDITIONS_IN_BBS. */
383 :
384 : static void
385 11624971 : find_conditions (basic_block bb,
386 : hash_map<basic_block, condition_info *> *conditions_in_bbs)
387 : {
388 11624971 : gimple_stmt_iterator gsi = gsi_last_nondebug_bb (bb);
389 11624971 : if (gsi_end_p (gsi))
390 9547727 : return;
391 :
392 13571574 : gcond *cond = dyn_cast<gcond *> (gsi_stmt (gsi));
393 4023847 : if (cond == NULL)
394 : return;
395 :
396 4023847 : tree lhs = gimple_cond_lhs (cond);
397 4023847 : tree rhs = gimple_cond_rhs (cond);
398 4023847 : tree_code code = gimple_cond_code (cond);
399 :
400 4023847 : condition_info *info = new condition_info (cond, !no_side_effect_bb (bb));
401 :
402 4023847 : gassign *def;
403 4023847 : if (code == NE_EXPR
404 2019804 : && TREE_CODE (lhs) == SSA_NAME
405 2019521 : && (def = dyn_cast<gassign *> (SSA_NAME_DEF_STMT (lhs))) != NULL
406 5110032 : && integer_zerop (rhs))
407 : {
408 647710 : enum tree_code rhs_code = gimple_assign_rhs_code (def);
409 647710 : if (rhs_code == BIT_IOR_EXPR)
410 : {
411 29069 : info->m_ranges.safe_grow (2, true);
412 29069 : init_range_entry (&info->m_ranges[0], gimple_assign_rhs1 (def), NULL);
413 58138 : init_range_entry (&info->m_ranges[1], gimple_assign_rhs2 (def), NULL);
414 : }
415 : }
416 : else
417 : {
418 3376137 : info->m_ranges.safe_grow (1, true);
419 3376137 : init_range_entry (&info->m_ranges[0], NULL_TREE, cond);
420 : }
421 :
422 : /* All identified ranges must have equal expression and IN_P flag. */
423 4023847 : if (!info->m_ranges.is_empty ())
424 : {
425 3405206 : edge true_edge, false_edge;
426 3405206 : tree expr = info->m_ranges[0].exp;
427 3405206 : bool in_p = info->m_ranges[0].in_p;
428 :
429 3405206 : extract_true_false_edges_from_block (bb, &true_edge, &false_edge);
430 3405206 : info->m_true_edge = in_p ? true_edge : false_edge;
431 3405206 : info->m_false_edge = in_p ? false_edge : true_edge;
432 :
433 10780818 : for (unsigned i = 0; i < info->m_ranges.length (); ++i)
434 3427823 : if (info->m_ranges[i].exp == NULL_TREE
435 2391012 : || !INTEGRAL_TYPE_P (TREE_TYPE (info->m_ranges[i].exp))
436 2189688 : || info->m_ranges[i].low == NULL_TREE
437 2050439 : || info->m_ranges[i].high == NULL_TREE
438 5413392 : || (TYPE_PRECISION (TREE_TYPE (info->m_ranges[i].low))
439 1985569 : != TYPE_PRECISION (TREE_TYPE (info->m_ranges[i].high))))
440 1458603 : goto exit;
441 :
442 1968342 : for (unsigned i = 1; i < info->m_ranges.length (); ++i)
443 21733 : if (info->m_ranges[i].exp != expr
444 21733 : || info->m_ranges[i].in_p != in_p)
445 15977 : goto exit;
446 :
447 : /* The IOR of several ranges is the union of the ranges only when
448 : each range is an IN_P range. The IOR of anti-ranges is the
449 : complement of their intersection. */
450 1946609 : if (info->m_ranges.length () > 1 && !in_p)
451 6 : goto exit;
452 :
453 1946603 : info->record_phi_mapping (info->m_true_edge,
454 : &info->m_true_edge_phi_mapping);
455 1946603 : info->record_phi_mapping (info->m_false_edge,
456 : &info->m_false_edge_phi_mapping);
457 1946603 : conditions_in_bbs->put (bb, info);
458 1946603 : return;
459 : }
460 :
461 2077244 : exit:
462 2077244 : delete info;
463 : }
464 :
465 : namespace {
466 :
467 : const pass_data pass_data_if_to_switch =
468 : {
469 : GIMPLE_PASS, /* type */
470 : "iftoswitch", /* name */
471 : OPTGROUP_NONE, /* optinfo_flags */
472 : TV_TREE_IF_TO_SWITCH, /* tv_id */
473 : ( PROP_cfg | PROP_ssa ), /* properties_required */
474 : 0, /* properties_provided */
475 : 0, /* properties_destroyed */
476 : 0, /* todo_flags_start */
477 : TODO_update_ssa /* todo_flags_finish */
478 : };
479 :
480 : class pass_if_to_switch : public gimple_opt_pass
481 : {
482 : public:
483 302985 : pass_if_to_switch (gcc::context *ctxt)
484 605970 : : gimple_opt_pass (pass_data_if_to_switch, ctxt)
485 : {}
486 :
487 : /* opt_pass methods: */
488 2527232 : bool gate (function *) final override
489 : {
490 2527232 : return (jump_table_cluster::is_enabled ()
491 2527232 : || bit_test_cluster::is_enabled ());
492 : }
493 :
494 : unsigned int execute (function *) final override;
495 :
496 : }; // class pass_if_to_switch
497 :
498 : unsigned int
499 2527063 : pass_if_to_switch::execute (function *fun)
500 : {
501 2527063 : auto_vec<if_chain *> all_candidates;
502 2527063 : hash_map<basic_block, condition_info *> conditions_in_bbs;
503 :
504 2527063 : mark_ssa_maybe_undefs ();
505 :
506 2527063 : basic_block bb;
507 14152034 : FOR_EACH_BB_FN (bb, fun)
508 11624971 : find_conditions (bb, &conditions_in_bbs);
509 :
510 2527063 : if (conditions_in_bbs.is_empty ())
511 : return 0;
512 :
513 514413 : int *rpo = XNEWVEC (int, n_basic_blocks_for_fn (fun));
514 514413 : unsigned n = pre_and_rev_post_order_compute_fn (fun, NULL, rpo, false);
515 :
516 514413 : auto_bitmap seen_bbs;
517 8273597 : for (int i = n - 1; i >= 0; --i)
518 : {
519 7759184 : basic_block bb = BASIC_BLOCK_FOR_FN (fun, rpo[i]);
520 7759184 : if (bitmap_bit_p (seen_bbs, bb->index))
521 43550 : continue;
522 :
523 7715634 : bitmap_set_bit (seen_bbs, bb->index);
524 7715634 : condition_info **slot = conditions_in_bbs.get (bb);
525 7715634 : if (slot)
526 : {
527 1903053 : condition_info *info = *slot;
528 1903053 : if_chain *chain = new if_chain ();
529 1903053 : chain->m_entries.safe_push (info);
530 : /* Try to find a chain starting in this BB. */
531 1990153 : while (true)
532 : {
533 1946603 : if (!single_pred_p (gimple_bb (info->m_cond)))
534 : break;
535 1331295 : edge e = single_pred_edge (gimple_bb (info->m_cond));
536 1331295 : condition_info **info2 = conditions_in_bbs.get (e->src);
537 1331295 : if (!info2 || info->m_ranges[0].exp != (*info2)->m_ranges[0].exp)
538 : break;
539 :
540 : /* It is important that the blocks are linked through FALSE_EDGE.
541 : For an expression of index != VALUE, true and false edges
542 : are flipped. */
543 57535 : if ((*info2)->m_false_edge != e)
544 : break;
545 :
546 : /* Only the first BB in a chain can have a side effect. */
547 50744 : if (info->m_has_side_effect)
548 : break;
549 :
550 43550 : chain->m_entries.safe_push (*info2);
551 43550 : bitmap_set_bit (seen_bbs, e->src->index);
552 43550 : info = *info2;
553 43550 : }
554 :
555 1903053 : chain->m_entries.reverse ();
556 1903053 : if (chain->m_entries.length () >= 2
557 36460 : && chain->check_non_overlapping_cases ()
558 1930240 : && chain->is_beneficial ())
559 : {
560 1524 : gcond *cond = chain->m_entries[0]->m_cond;
561 1524 : if (dump_enabled_p ())
562 10 : dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, cond,
563 : "Condition chain with %d BBs "
564 : "transformed into a switch statement.\n",
565 : chain->m_entries.length ());
566 1524 : all_candidates.safe_push (chain);
567 : }
568 : else
569 1901529 : delete chain;
570 : }
571 : }
572 :
573 515937 : for (unsigned i = 0; i < all_candidates.length (); i++)
574 : {
575 1524 : convert_if_conditions_to_switch (all_candidates[i]);
576 3048 : delete all_candidates[i];
577 : }
578 :
579 514413 : free (rpo);
580 :
581 2461016 : for (hash_map<basic_block, condition_info *>::iterator it
582 2461016 : = conditions_in_bbs.begin (); it != conditions_in_bbs.end (); ++it)
583 1946603 : delete (*it).second;
584 :
585 515827 : if (!all_candidates.is_empty ())
586 : {
587 1414 : free_dominance_info (CDI_DOMINATORS);
588 1414 : return TODO_cleanup_cfg;
589 : }
590 :
591 : return 0;
592 3041476 : }
593 :
594 : } // anon namespace
595 :
596 : gimple_opt_pass *
597 302985 : make_pass_if_to_switch (gcc::context *ctxt)
598 : {
599 302985 : return new pass_if_to_switch (ctxt);
600 : }
|