decl.c (value_annotation_hasher::handle_cache_entry): Delete.
[gcc.git] / gcc / compare-elim.c
1 /* Post-reload compare elimination.
2 Copyright (C) 2010-2015 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 it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 3, or (at your option) any later
9 version.
10
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 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 /* There is a set of targets whose general-purpose move or addition
21 instructions clobber the flags. These targets cannot split their
22 CBRANCH/CSTORE etc patterns before reload is complete, lest reload
23 itself insert these instructions in between the flags setter and user.
24 Because these targets cannot split the compare from the use, they
25 cannot make use of the comparison elimination offered by the combine pass.
26
27 This is a small pass intended to provide comparison elimination similar to
28 what is available via NOTICE_UPDATE_CC for cc0 targets. This should help
29 encourage cc0 targets to convert to an explicit post-reload representation
30 of the flags.
31
32 This pass assumes:
33
34 (0) CBRANCH/CSTORE etc have been split in pass_split_after_reload.
35
36 (1) All comparison patterns are represented as
37
38 [(set (reg:CC) (compare:CC (reg) (reg_or_immediate)))]
39
40 (2) All insn patterns that modify the flags are represented as
41
42 [(set (reg) (operation)
43 (clobber (reg:CC))]
44
45 (3) If an insn of form (2) can usefully set the flags, there is
46 another pattern of the form
47
48 [(set (reg) (operation)
49 (set (reg:CCM) (compare:CCM (operation) (immediate)))]
50
51 The mode CCM will be chosen as if by SELECT_CC_MODE.
52
53 Note that unlike NOTICE_UPDATE_CC, we do not handle memory operands.
54 This could be handled as a future enhancement.
55 */
56
57 #include "config.h"
58 #include "system.h"
59 #include "coretypes.h"
60 #include "tm.h"
61 #include "rtl.h"
62 #include "tm_p.h"
63 #include "insn-config.h"
64 #include "recog.h"
65 #include "flags.h"
66 #include "predict.h"
67 #include "hard-reg-set.h"
68 #include "function.h"
69 #include "dominance.h"
70 #include "cfg.h"
71 #include "cfgrtl.h"
72 #include "basic-block.h"
73 #include "tree-pass.h"
74 #include "target.h"
75 #include "df.h"
76 #include "domwalk.h"
77
78 \f
79 /* These structures describe a comparison and how it is used. */
80
81 /* The choice of maximum 3 uses comes from wanting to eliminate the two
82 duplicate compares from a three-way branch on the sign of a value.
83 This is also sufficient to eliminate the duplicate compare against the
84 high-part of a double-word comparison. */
85 #define MAX_CMP_USE 3
86
87 struct comparison_use
88 {
89 /* The instruction in which the result of the compare is used. */
90 rtx_insn *insn;
91 /* The location of the flags register within the use. */
92 rtx *loc;
93 /* The comparison code applied against the flags register. */
94 enum rtx_code code;
95 };
96
97 struct comparison
98 {
99 /* The comparison instruction. */
100 rtx_insn *insn;
101
102 /* The insn prior to the comparison insn that clobbers the flags. */
103 rtx_insn *prev_clobber;
104
105 /* The two values being compared. These will be either REGs or
106 constants. */
107 rtx in_a, in_b;
108
109 /* The REG_EH_REGION of the comparison. */
110 rtx eh_note;
111
112 /* Information about how this comparison is used. */
113 struct comparison_use uses[MAX_CMP_USE];
114
115 /* The original CC_MODE for this comparison. */
116 machine_mode orig_mode;
117
118 /* The number of uses identified for this comparison. */
119 unsigned short n_uses;
120
121 /* True if not all uses of this comparison have been identified.
122 This can happen either for overflowing the array above, or if
123 the flags register is used in some unusual context. */
124 bool missing_uses;
125
126 /* True if its inputs are still valid at the end of the block. */
127 bool inputs_valid;
128 };
129
130 typedef struct comparison *comparison_struct_p;
131
132 static vec<comparison_struct_p> all_compares;
133
134 /* Look for a "conforming" comparison, as defined above. If valid, return
135 the rtx for the COMPARE itself. */
136
137 static rtx
138 conforming_compare (rtx_insn *insn)
139 {
140 rtx set, src, dest;
141
142 set = single_set (insn);
143 if (set == NULL)
144 return NULL;
145
146 src = SET_SRC (set);
147 if (GET_CODE (src) != COMPARE)
148 return NULL;
149
150 dest = SET_DEST (set);
151 if (!REG_P (dest) || REGNO (dest) != targetm.flags_regnum)
152 return NULL;
153
154 if (REG_P (XEXP (src, 0))
155 && (REG_P (XEXP (src, 1)) || CONSTANT_P (XEXP (src, 1))))
156 return src;
157
158 return NULL;
159 }
160
161 /* Look for a pattern of the "correct" form for an insn with a flags clobber
162 for which we may be able to eliminate a compare later. We're not looking
163 to validate any inputs at this time, merely see that the basic shape is
164 correct. The term "arithmetic" may be somewhat misleading... */
165
166 static bool
167 arithmetic_flags_clobber_p (rtx_insn *insn)
168 {
169 rtx pat, x;
170
171 if (!NONJUMP_INSN_P (insn))
172 return false;
173 pat = PATTERN (insn);
174 if (extract_asm_operands (pat))
175 return false;
176
177 if (GET_CODE (pat) == PARALLEL && XVECLEN (pat, 0) == 2)
178 {
179 x = XVECEXP (pat, 0, 0);
180 if (GET_CODE (x) != SET)
181 return false;
182 x = SET_DEST (x);
183 if (!REG_P (x))
184 return false;
185
186 x = XVECEXP (pat, 0, 1);
187 if (GET_CODE (x) == CLOBBER)
188 {
189 x = XEXP (x, 0);
190 if (REG_P (x) && REGNO (x) == targetm.flags_regnum)
191 return true;
192 }
193 }
194
195 return false;
196 }
197
198 /* Look for uses of FLAGS in INSN. If we find one we can analyze, record
199 it in CMP; otherwise indicate that we've missed a use. */
200
201 static void
202 find_flags_uses_in_insn (struct comparison *cmp, rtx_insn *insn)
203 {
204 df_ref use;
205
206 /* If we've already lost track of uses, don't bother collecting more. */
207 if (cmp->missing_uses)
208 return;
209
210 /* Find a USE of the flags register. */
211 FOR_EACH_INSN_USE (use, insn)
212 if (DF_REF_REGNO (use) == targetm.flags_regnum)
213 {
214 rtx x, *loc;
215
216 /* If this is an unusual use, quit. */
217 if (DF_REF_TYPE (use) != DF_REF_REG_USE)
218 goto fail;
219
220 /* If we've run out of slots to record uses, quit. */
221 if (cmp->n_uses == MAX_CMP_USE)
222 goto fail;
223
224 /* Unfortunately the location of the flags register, while present
225 in the reference structure, doesn't help. We need to find the
226 comparison code that is outer to the actual flags use. */
227 loc = DF_REF_LOC (use);
228 x = PATTERN (insn);
229 if (GET_CODE (x) == PARALLEL)
230 x = XVECEXP (x, 0, 0);
231 x = SET_SRC (x);
232 if (GET_CODE (x) == IF_THEN_ELSE)
233 x = XEXP (x, 0);
234 if (COMPARISON_P (x)
235 && loc == &XEXP (x, 0)
236 && XEXP (x, 1) == const0_rtx)
237 {
238 /* We've found a use of the flags that we understand. */
239 struct comparison_use *cuse = &cmp->uses[cmp->n_uses++];
240 cuse->insn = insn;
241 cuse->loc = loc;
242 cuse->code = GET_CODE (x);
243 }
244 else
245 goto fail;
246 }
247 return;
248
249 fail:
250 /* We failed to recognize this use of the flags register. */
251 cmp->missing_uses = true;
252 }
253
254 class find_comparison_dom_walker : public dom_walker
255 {
256 public:
257 find_comparison_dom_walker (cdi_direction direction)
258 : dom_walker (direction) {}
259
260 virtual void before_dom_children (basic_block);
261 };
262
263 /* Return true if conforming COMPARE with EH_NOTE is redundant with comparison
264 CMP and can thus be eliminated. */
265
266 static bool
267 can_eliminate_compare (rtx compare, rtx eh_note, struct comparison *cmp)
268 {
269 /* Take care that it's in the same EH region. */
270 if (cfun->can_throw_non_call_exceptions
271 && !rtx_equal_p (eh_note, cmp->eh_note))
272 return false;
273
274 /* Make sure the compare is redundant with the previous. */
275 if (!rtx_equal_p (XEXP (compare, 0), cmp->in_a)
276 || !rtx_equal_p (XEXP (compare, 1), cmp->in_b))
277 return false;
278
279 /* New mode must be compatible with the previous compare mode. */
280 enum machine_mode new_mode
281 = targetm.cc_modes_compatible (GET_MODE (compare), cmp->orig_mode);
282
283 if (new_mode == VOIDmode)
284 return false;
285
286 if (cmp->orig_mode != new_mode)
287 {
288 /* Generate new comparison for substitution. */
289 rtx flags = gen_rtx_REG (new_mode, targetm.flags_regnum);
290 rtx x = gen_rtx_COMPARE (new_mode, cmp->in_a, cmp->in_b);
291 x = gen_rtx_SET (flags, x);
292
293 if (!validate_change (cmp->insn, &PATTERN (cmp->insn), x, false))
294 return false;
295
296 cmp->orig_mode = new_mode;
297 }
298
299 return true;
300 }
301
302 /* Identify comparison instructions within BB. If the flags from the last
303 compare in the BB is live at the end of the block, install the compare
304 in BB->AUX. Called via dom_walker.walk (). */
305
306 void
307 find_comparison_dom_walker::before_dom_children (basic_block bb)
308 {
309 struct comparison *last_cmp;
310 rtx_insn *insn, *next, *last_clobber;
311 bool last_cmp_valid;
312 bool need_purge = false;
313 bitmap killed;
314
315 killed = BITMAP_ALLOC (NULL);
316
317 /* The last comparison that was made. Will be reset to NULL
318 once the flags are clobbered. */
319 last_cmp = NULL;
320
321 /* True iff the last comparison has not been clobbered, nor
322 have its inputs. Used to eliminate duplicate compares. */
323 last_cmp_valid = false;
324
325 /* The last insn that clobbered the flags, if that insn is of
326 a form that may be valid for eliminating a following compare.
327 To be reset to NULL once the flags are set otherwise. */
328 last_clobber = NULL;
329
330 /* Propagate the last live comparison throughout the extended basic block. */
331 if (single_pred_p (bb))
332 {
333 last_cmp = (struct comparison *) single_pred (bb)->aux;
334 if (last_cmp)
335 last_cmp_valid = last_cmp->inputs_valid;
336 }
337
338 for (insn = BB_HEAD (bb); insn; insn = next)
339 {
340 rtx src;
341
342 next = (insn == BB_END (bb) ? NULL : NEXT_INSN (insn));
343 if (!NONDEBUG_INSN_P (insn))
344 continue;
345
346 /* Compute the set of registers modified by this instruction. */
347 bitmap_clear (killed);
348 df_simulate_find_defs (insn, killed);
349
350 src = conforming_compare (insn);
351 if (src)
352 {
353 rtx eh_note = NULL;
354
355 if (cfun->can_throw_non_call_exceptions)
356 eh_note = find_reg_note (insn, REG_EH_REGION, NULL);
357
358 if (last_cmp_valid && can_eliminate_compare (src, eh_note, last_cmp))
359 {
360 if (eh_note)
361 need_purge = true;
362 delete_insn (insn);
363 continue;
364 }
365
366 last_cmp = XCNEW (struct comparison);
367 last_cmp->insn = insn;
368 last_cmp->prev_clobber = last_clobber;
369 last_cmp->in_a = XEXP (src, 0);
370 last_cmp->in_b = XEXP (src, 1);
371 last_cmp->eh_note = eh_note;
372 last_cmp->orig_mode = GET_MODE (src);
373 all_compares.safe_push (last_cmp);
374
375 /* It's unusual, but be prepared for comparison patterns that
376 also clobber an input, or perhaps a scratch. */
377 last_clobber = NULL;
378 last_cmp_valid = true;
379 }
380
381 /* Notice if this instruction kills the flags register. */
382 else if (bitmap_bit_p (killed, targetm.flags_regnum))
383 {
384 /* See if this insn could be the "clobber" that eliminates
385 a future comparison. */
386 last_clobber = (arithmetic_flags_clobber_p (insn) ? insn : NULL);
387
388 /* In either case, the previous compare is no longer valid. */
389 last_cmp = NULL;
390 last_cmp_valid = false;
391 }
392
393 /* Notice if this instruction uses the flags register. */
394 else if (last_cmp)
395 find_flags_uses_in_insn (last_cmp, insn);
396
397 /* Notice if any of the inputs to the comparison have changed. */
398 if (last_cmp_valid
399 && (bitmap_bit_p (killed, REGNO (last_cmp->in_a))
400 || (REG_P (last_cmp->in_b)
401 && bitmap_bit_p (killed, REGNO (last_cmp->in_b)))))
402 last_cmp_valid = false;
403 }
404
405 BITMAP_FREE (killed);
406
407 /* Remember the live comparison for subsequent members of
408 the extended basic block. */
409 if (last_cmp)
410 {
411 bb->aux = last_cmp;
412 last_cmp->inputs_valid = last_cmp_valid;
413
414 /* Look to see if the flags register is live outgoing here, and
415 incoming to any successor not part of the extended basic block. */
416 if (bitmap_bit_p (df_get_live_out (bb), targetm.flags_regnum))
417 {
418 edge e;
419 edge_iterator ei;
420
421 FOR_EACH_EDGE (e, ei, bb->succs)
422 {
423 basic_block dest = e->dest;
424 if (bitmap_bit_p (df_get_live_in (bb), targetm.flags_regnum)
425 && !single_pred_p (dest))
426 {
427 last_cmp->missing_uses = true;
428 break;
429 }
430 }
431 }
432 }
433
434 /* If we deleted a compare with a REG_EH_REGION note, we may need to
435 remove EH edges. */
436 if (need_purge)
437 purge_dead_edges (bb);
438 }
439
440 /* Find all comparisons in the function. */
441
442 static void
443 find_comparisons (void)
444 {
445 calculate_dominance_info (CDI_DOMINATORS);
446
447 find_comparison_dom_walker (CDI_DOMINATORS)
448 .walk (cfun->cfg->x_entry_block_ptr);
449
450 clear_aux_for_blocks ();
451 free_dominance_info (CDI_DOMINATORS);
452 }
453
454 /* Select an alternate CC_MODE for a comparison insn comparing A and B.
455 Note that inputs are almost certainly different than the IN_A and IN_B
456 stored in CMP -- we're called while attempting to eliminate the compare
457 after all. Return the new FLAGS rtx if successful, else return NULL.
458 Note that this function may start a change group. */
459
460 static rtx
461 maybe_select_cc_mode (struct comparison *cmp, rtx a ATTRIBUTE_UNUSED,
462 rtx b ATTRIBUTE_UNUSED)
463 {
464 machine_mode sel_mode;
465 const int n = cmp->n_uses;
466 rtx flags = NULL;
467
468 #ifndef SELECT_CC_MODE
469 /* Minimize code differences when this target macro is undefined. */
470 return NULL;
471 #define SELECT_CC_MODE(A,B,C) (gcc_unreachable (), VOIDmode)
472 #endif
473
474 /* If we don't have access to all of the uses, we can't validate. */
475 if (cmp->missing_uses || n == 0)
476 return NULL;
477
478 /* Find a new mode that works for all of the uses. Special case the
479 common case of exactly one use. */
480 if (n == 1)
481 {
482 sel_mode = SELECT_CC_MODE (cmp->uses[0].code, a, b);
483 if (sel_mode != cmp->orig_mode)
484 {
485 flags = gen_rtx_REG (sel_mode, targetm.flags_regnum);
486 validate_change (cmp->uses[0].insn, cmp->uses[0].loc, flags, true);
487 }
488 }
489 else
490 {
491 int i;
492
493 sel_mode = SELECT_CC_MODE (cmp->uses[0].code, a, b);
494 for (i = 1; i < n; ++i)
495 {
496 machine_mode new_mode = SELECT_CC_MODE (cmp->uses[i].code, a, b);
497 if (new_mode != sel_mode)
498 {
499 sel_mode = targetm.cc_modes_compatible (sel_mode, new_mode);
500 if (sel_mode == VOIDmode)
501 return NULL;
502 }
503 }
504
505 if (sel_mode != cmp->orig_mode)
506 {
507 flags = gen_rtx_REG (sel_mode, targetm.flags_regnum);
508 for (i = 0; i < n; ++i)
509 validate_change (cmp->uses[i].insn, cmp->uses[i].loc, flags, true);
510 }
511 }
512
513 return flags;
514 }
515
516 /* Attempt to replace a comparison with a prior arithmetic insn that can
517 compute the same flags value as the comparison itself. Return true if
518 successful, having made all rtl modifications necessary. */
519
520 static bool
521 try_eliminate_compare (struct comparison *cmp)
522 {
523 rtx_insn *insn, *bb_head;
524 rtx x, flags, in_a, cmp_src;
525
526 /* We must have found an interesting "clobber" preceding the compare. */
527 if (cmp->prev_clobber == NULL)
528 return false;
529
530 /* ??? For the moment we don't handle comparisons for which IN_B
531 is a register. We accepted these during initial comparison
532 recognition in order to eliminate duplicate compares.
533 An improvement here would be to handle x = a - b; if (a cmp b). */
534 if (!CONSTANT_P (cmp->in_b))
535 return false;
536
537 /* Verify that IN_A is not clobbered in between CMP and PREV_CLOBBER.
538 Given that this target requires this pass, we can assume that most
539 insns do clobber the flags, and so the distance between the compare
540 and the clobber is likely to be small. */
541 /* ??? This is one point at which one could argue that DF_REF_CHAIN would
542 be useful, but it is thought to be too heavy-weight a solution here. */
543
544 in_a = cmp->in_a;
545 insn = cmp->insn;
546 bb_head = BB_HEAD (BLOCK_FOR_INSN (insn));
547 for (insn = PREV_INSN (insn);
548 insn != cmp->prev_clobber;
549 insn = PREV_INSN (insn))
550 {
551 const int abnormal_flags
552 = (DF_REF_CONDITIONAL | DF_REF_PARTIAL | DF_REF_MAY_CLOBBER
553 | DF_REF_MUST_CLOBBER | DF_REF_SIGN_EXTRACT
554 | DF_REF_ZERO_EXTRACT | DF_REF_STRICT_LOW_PART
555 | DF_REF_PRE_POST_MODIFY);
556 df_ref def;
557
558 /* Note that the BB_HEAD is always either a note or a label, but in
559 any case it means that IN_A is defined outside the block. */
560 if (insn == bb_head)
561 return false;
562 if (NOTE_P (insn) || DEBUG_INSN_P (insn))
563 continue;
564
565 /* Find a possible def of IN_A in INSN. */
566 FOR_EACH_INSN_DEF (def, insn)
567 if (DF_REF_REGNO (def) == REGNO (in_a))
568 break;
569
570 /* No definitions of IN_A; continue searching. */
571 if (def == NULL)
572 continue;
573
574 /* Bail if this is not a totally normal set of IN_A. */
575 if (DF_REF_IS_ARTIFICIAL (def))
576 return false;
577 if (DF_REF_FLAGS (def) & abnormal_flags)
578 return false;
579
580 /* We've found an insn between the compare and the clobber that sets
581 IN_A. Given that pass_cprop_hardreg has not yet run, we still find
582 situations in which we can usefully look through a copy insn. */
583 x = single_set (insn);
584 if (x == NULL)
585 return false;
586 in_a = SET_SRC (x);
587 if (!REG_P (in_a))
588 return false;
589 }
590
591 /* We've reached PREV_CLOBBER without finding a modification of IN_A.
592 Validate that PREV_CLOBBER itself does in fact refer to IN_A. Do
593 recall that we've already validated the shape of PREV_CLOBBER. */
594 x = XVECEXP (PATTERN (insn), 0, 0);
595 if (rtx_equal_p (SET_DEST (x), in_a))
596 cmp_src = SET_SRC (x);
597
598 /* Also check operations with implicit extensions, e.g.:
599 [(set (reg:DI)
600 (zero_extend:DI (plus:SI (reg:SI)(reg:SI))))
601 (set (reg:CCZ flags)
602 (compare:CCZ
603 (plus:SI (reg:SI)(reg:SI))
604 (const_int 0)))] */
605 else if (REG_P (SET_DEST (x))
606 && REG_P (in_a)
607 && REGNO (SET_DEST (x)) == REGNO (in_a)
608 && (GET_CODE (SET_SRC (x)) == ZERO_EXTEND
609 || GET_CODE (SET_SRC (x)) == SIGN_EXTEND)
610 && GET_MODE (XEXP (SET_SRC (x), 0)) == GET_MODE (in_a))
611 cmp_src = XEXP (SET_SRC (x), 0);
612 else
613 return false;
614
615 /* Determine if we ought to use a different CC_MODE here. */
616 flags = maybe_select_cc_mode (cmp, cmp_src, cmp->in_b);
617 if (flags == NULL)
618 flags = gen_rtx_REG (cmp->orig_mode, targetm.flags_regnum);
619
620 /* Generate a new comparison for installation in the setter. */
621 x = copy_rtx (cmp_src);
622 x = gen_rtx_COMPARE (GET_MODE (flags), x, cmp->in_b);
623 x = gen_rtx_SET (flags, x);
624
625 /* Succeed if the new instruction is valid. Note that we may have started
626 a change group within maybe_select_cc_mode, therefore we must continue. */
627 validate_change (insn, &XVECEXP (PATTERN (insn), 0, 1), x, true);
628 if (!apply_change_group ())
629 return false;
630
631 /* Success. Delete the compare insn... */
632 delete_insn (cmp->insn);
633
634 /* ... and any notes that are now invalid due to multiple sets. */
635 x = find_regno_note (insn, REG_UNUSED, targetm.flags_regnum);
636 if (x)
637 remove_note (insn, x);
638 x = find_reg_note (insn, REG_EQUAL, NULL);
639 if (x)
640 remove_note (insn, x);
641 x = find_reg_note (insn, REG_EQUIV, NULL);
642 if (x)
643 remove_note (insn, x);
644
645 return true;
646 }
647
648 /* Main entry point to the pass. */
649
650 static unsigned int
651 execute_compare_elim_after_reload (void)
652 {
653 df_analyze ();
654
655 gcc_checking_assert (!all_compares.exists ());
656
657 /* Locate all comparisons and their uses, and eliminate duplicates. */
658 find_comparisons ();
659 if (all_compares.exists ())
660 {
661 struct comparison *cmp;
662 size_t i;
663
664 /* Eliminate comparisons that are redundant with flags computation. */
665 FOR_EACH_VEC_ELT (all_compares, i, cmp)
666 {
667 try_eliminate_compare (cmp);
668 XDELETE (cmp);
669 }
670
671 all_compares.release ();
672 }
673
674 return 0;
675 }
676
677 namespace {
678
679 const pass_data pass_data_compare_elim_after_reload =
680 {
681 RTL_PASS, /* type */
682 "cmpelim", /* name */
683 OPTGROUP_NONE, /* optinfo_flags */
684 TV_NONE, /* tv_id */
685 0, /* properties_required */
686 0, /* properties_provided */
687 0, /* properties_destroyed */
688 0, /* todo_flags_start */
689 ( TODO_df_finish | TODO_df_verify ), /* todo_flags_finish */
690 };
691
692 class pass_compare_elim_after_reload : public rtl_opt_pass
693 {
694 public:
695 pass_compare_elim_after_reload (gcc::context *ctxt)
696 : rtl_opt_pass (pass_data_compare_elim_after_reload, ctxt)
697 {}
698
699 /* opt_pass methods: */
700 virtual bool gate (function *)
701 {
702 /* Setting this target hook value is how a backend indicates the need. */
703 if (targetm.flags_regnum == INVALID_REGNUM)
704 return false;
705 return flag_compare_elim_after_reload;
706 }
707
708 virtual unsigned int execute (function *)
709 {
710 return execute_compare_elim_after_reload ();
711 }
712
713 }; // class pass_compare_elim_after_reload
714
715 } // anon namespace
716
717 rtl_opt_pass *
718 make_pass_compare_elim_after_reload (gcc::context *ctxt)
719 {
720 return new pass_compare_elim_after_reload (ctxt);
721 }