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]
Other format: [Raw text]

[patch] Remove loop notes (8/8)


Hello,

this patch removes the loop notes from insn-notes.def and documentation.
Bootstrapped & regtested on i686.

The loop notes are still referenced in sh backend, so this patch may
go in only after http://gcc.gnu.org/ml/gcc-patches/2006-03/msg01457.html
does.

Zdenek

	* doc/tm.texi (LOOP_ALIGN): Do not mention loop notes.
	* doc/rtl.texi (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END,
	NOTE_INSN_LOOP_CONT, NOTE_INSN_LOOP_VTOP): Remove documentation.
	* insn-notes.def (LOOP_BEG, LOOP_END): Remove.

Index: doc/tm.texi
===================================================================
*** doc/tm.texi	(revision 112315)
--- doc/tm.texi	(working copy)
*************** The maximum number of bytes to skip when
*** 7990,7997 ****
  @end defmac
  
  @defmac LOOP_ALIGN (@var{label})
! The alignment (log base 2) to put in front of @var{label}, which follows
! a @code{NOTE_INSN_LOOP_BEG} note.
  
  This macro need not be defined if you don't want any special alignment
  to be done at such a time.  Most machine descriptions do not currently
--- 7990,7997 ----
  @end defmac
  
  @defmac LOOP_ALIGN (@var{label})
! The alignment (log base 2) to put in front of @var{label} at the beginning
! of a loop.
  
  This macro need not be defined if you don't want any special alignment
  to be done at such a time.  Most machine descriptions do not currently
Index: doc/rtl.texi
===================================================================
*** doc/rtl.texi	(revision 112315)
--- doc/rtl.texi	(working copy)
*************** level of scoping for exception handling.
*** 3139,3163 ****
  identifies which @code{CODE_LABEL} or @code{note} of type
  @code{NOTE_INSN_DELETED_LABEL} is associated with the given region.
  
- @findex NOTE_INSN_LOOP_BEG
- @findex NOTE_INSN_LOOP_END
- @item NOTE_INSN_LOOP_BEG
- @itemx NOTE_INSN_LOOP_END
- These types of notes indicate the position of the beginning and end
- of a @code{while} or @code{for} loop.  They enable the loop optimizer
- to find loops quickly.
- 
- @findex NOTE_INSN_LOOP_CONT
- @item NOTE_INSN_LOOP_CONT
- Appears at the place in a loop that @code{continue} statements jump to.
- 
- @findex NOTE_INSN_LOOP_VTOP
- @item NOTE_INSN_LOOP_VTOP
- This note indicates the place in a loop where the exit test begins for
- those loops in which the exit test has been duplicated.  This position
- becomes another virtual start of the loop when considering loop
- invariants.
- 
  @findex NOTE_INSN_FUNCTION_BEG
  @item NOTE_INSN_FUNCTION_BEG
  Appears at the start of the function body, after the function
--- 3139,3144 ----
Index: insn-notes.def
===================================================================
*** insn-notes.def	(revision 112315)
--- insn-notes.def	(working copy)
*************** INSN_NOTE (DELETED_LABEL)
*** 43,52 ****
  INSN_NOTE (BLOCK_BEG)
  INSN_NOTE (BLOCK_END)
  
- /* These mark the extremes of a loop.  */
- INSN_NOTE (LOOP_BEG)
- INSN_NOTE (LOOP_END)
- 
  /* This note indicates the start of the real body of the function,
     i.e. the point just after all of the parms have been moved into
     their homes, etc.  */
--- 43,48 ----


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