genrecog.c (add_to_sequence): Remove special case for const_int_operand.
authorJan Hubicka <jh@suse.cz>
Fri, 15 Dec 2000 13:50:32 +0000 (14:50 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 15 Dec 2000 13:50:32 +0000 (13:50 +0000)
* 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
gcc/genrecog.c

index b342fd7bbb236725a0b70d92aee6c7386952ad60..ec345e56031e8c30bac0ce7c42213926859e33c8 100644 (file)
@@ -1,3 +1,10 @@
+Fri Dec 15 14:48:37 MET 2000  Jan Hubicka  <jh@suse.cz>
+
+       * 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  <jh@suse.cz>
 
        * integrate.c (copy_rtx_and_substitute): Copy mode too.
index 795d5214bfbdf89292c6c132d6ef3653962ab125..8146b7141b002585d4cfc4d1b37bc3c9a72c5d3d 100644 (file)
@@ -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;