From 29360e5681e7db46735ca063ffffd1890d06c99f Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Fri, 15 Dec 2000 14:50:32 +0100 Subject: [PATCH] genrecog.c (add_to_sequence): Remove special case for const_int_operand. * genrecog.c (add_to_sequence): Remove special case for const_int_operand. (maybe_both_true): Return 1 when falling out of sequence when trying to find common possition in the pattern. From-SVN: r38284 --- gcc/ChangeLog | 7 +++++++ gcc/genrecog.c | 10 ++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b342fd7bbb2..ec345e56031 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +Fri Dec 15 14:48:37 MET 2000 Jan Hubicka + + * genrecog.c (add_to_sequence): Remove special case for + const_int_operand. + (maybe_both_true): Return 1 when falling out of sequence when + trying to find common possition in the pattern. + Fri Dec 15 14:44:51 MET 2000 Jan Hubicka * integrate.c (copy_rtx_and_substitute): Copy mode too. diff --git a/gcc/genrecog.c b/gcc/genrecog.c index 795d5214bfb..8146b7141b0 100644 --- a/gcc/genrecog.c +++ b/gcc/genrecog.c @@ -826,13 +826,7 @@ add_to_sequence (pattern, last, position, insn_type, top) code = UNKNOWN; } - /* We know exactly what const_int_operand matches -- any CONST_INT. */ - if (strcmp ("const_int_operand", pred_name) == 0) - { - code = CONST_INT; - mode = VOIDmode; - } - else if (pred_name[0] != 0) + if (pred_name[0] != 0) { test = new_decision_test (DT_pred, &place); test->u.pred.name = pred_name; @@ -1206,7 +1200,7 @@ maybe_both_true (d1, d2, toplevel) p1 = d1, d1 = d2, d2 = p1; if (d1->success.first == 0) - return 0; + return 1; for (p1 = d1->success.first; p1; p1 = p1->next) if (maybe_both_true (p1, d2, 0)) return 1; -- 2.30.2