Bug 44326 - NONDEBUG_INSN_P should be used in implicit-zee.c
Summary: NONDEBUG_INSN_P should be used in implicit-zee.c
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.6.0
: P3 normal
Target Milestone: 4.6.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-29 18:46 UTC by H.J. Lu
Modified: 2010-06-25 15:34 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2010-05-29 18:46:35 UTC
implicit-zee.c has

 zeinsn_list = VEC_alloc (rtx, heap, 8);
 FOR_EACH_BB (curr_block)
   {
     FOR_BB_INSNS (curr_block, curr_insn)
       {
         if (!INSN_P (curr_insn))
           continue;

         type = for_each_rtx (&PATTERN (curr_insn),
                              is_set_with_extension_DI,
                              (void *)&set_insn);

         if (!type)
           continue;

I believe NONDEBUG_INSN_P should be used here instead of INSN_P.
Comment 1 hjl@gcc.gnu.org 2010-06-25 15:33:48 UTC
Subject: Bug 44326

Author: hjl
Date: Fri Jun 25 15:33:21 2010
New Revision: 161389

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161389
Log:
Don't search DEBUG_INSNs for removable zero extends.

2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>

	PR rtl-optimization/44326
	* implicit-zee.c (find_removable_zero_extends): Replace
	INSN_P with NONDEBUG_INSN_P.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/implicit-zee.c

Comment 2 H.J. Lu 2010-06-25 15:34:18 UTC
Fixed.