This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

cond_exec_get_condition regression




Committed on the grounds that it is obvious...

2000-05-26  Richard Earnshaw  <rearnsha@arm.com>

	* ifcvt.c (cond_exec_get_condition): Set test_if to the SET_SRC
	of get_pc.


Index: ifcvt.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/ifcvt.c,v
retrieving revision 1.23
diff -p -r1.23 ifcvt.c
*** ifcvt.c	2000/05/25 23:53:23	1.23
--- ifcvt.c	2000/05/26 09:48:53
*************** cond_exec_get_condition (jump)
*** 267,273 ****
    rtx test_if, cond;
  
    if (any_condjump_p (jump))
!     test_if = pc_set (jump);
    else
      return NULL_RTX;
    cond = XEXP (test_if, 0);
--- 267,273 ----
    rtx test_if, cond;
  
    if (any_condjump_p (jump))
!     test_if = SET_SRC (pc_set (jump));
    else
      return NULL_RTX;
    cond = XEXP (test_if, 0);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]