Remove NOTICE_UPDATE_CC remnants on cr16
authorJeff Law <jlaw@tachyum.com>
Wed, 5 May 2021 13:49:28 +0000 (07:49 -0600)
committerJeff Law <jlaw@tachyum.com>
Wed, 5 May 2021 13:49:28 +0000 (07:49 -0600)
gcc
* config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
* config/cr16/cr16.c (notice_update_cc): Remove.
* config/cr16/cr16-protos.h (notice_update_cc): Remove.

gcc/config/cr16/cr16-protos.h
gcc/config/cr16/cr16.c
gcc/config/cr16/cr16.h

index 32f54e0..8580dfe 100644 (file)
@@ -67,7 +67,6 @@ enum cr16_addrtype
   CR16_ABSOLUTE
 };
 
-extern void notice_update_cc (rtx);
 extern int cr16_operand_bit_pos (int val, int bitval);
 extern void cr16_decompose_const (rtx x, int *code,
                                  enum data_model_type *data,
index 079706f..6c81c39 100644 (file)
@@ -2095,37 +2095,6 @@ cr16_legitimate_constant_p (machine_mode mode ATTRIBUTE_UNUSED,
   return 1;
 }
 
-void
-notice_update_cc (rtx exp)
-{
-  if (GET_CODE (exp) == SET)
-    {
-      /* Jumps do not alter the cc's.  */
-      if (SET_DEST (exp) == pc_rtx)
-       return;
-
-      /* Moving register or memory into a register:
-         it doesn't alter the cc's, but it might invalidate
-         the RTX's which we remember the cc's came from.
-         (Note that moving a constant 0 or 1 MAY set the cc's).  */
-      if (REG_P (SET_DEST (exp))
-         && (REG_P (SET_SRC (exp)) || GET_CODE (SET_SRC (exp)) == MEM))
-       {
-         return;
-       }
-
-      /* Moving register into memory doesn't alter the cc's.
-         It may invalidate the RTX's which we remember the cc's came from.  */
-      if (GET_CODE (SET_DEST (exp)) == MEM && REG_P (SET_SRC (exp)))
-       {
-         return;
-       }
-    }
-
-  CC_STATUS_INIT;
-  return;
-}
-
 static scalar_int_mode
 cr16_unwind_word_mode (void)
 {
index ae90610..4ce9e81 100644 (file)
@@ -195,9 +195,6 @@ while (0)
   (targetm.hard_regno_nregs (REGNO,                                          \
                             GET_MODE_WIDER_MODE (word_mode).require ()) == 1)
 
-#define NOTICE_UPDATE_CC(EXP, INSN) \
-   notice_update_cc ((EXP))
-
 /* Interrupt functions can only use registers that have already been 
    saved by the prologue, even if they would normally be call-clobbered 
    Check if sizes are same and then check if it is possible to rename.  */