summaryrefslogtreecommitdiff
path: root/gcc/loop.h
diff options
context:
space:
mode:
authorm.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-15 20:31:18 +0000
committerm.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-15 20:31:18 +0000
commitd888299dd1be062477975441b67b951a8bc9df11 (patch)
tree9ef0e744d566ecaef9e587914a1a553ec59e674e /gcc/loop.h
parentac63fdffca2bdc9c30ba82a4c69e6b016c82582c (diff)
downloadgcc-d888299dd1be062477975441b67b951a8bc9df11.tar.gz
* loop.h (loop_info): New field 'vtop'.
* loop.c (check_dbra_loop): Use loop_info->vtop rather than scanning loop for vtop. * unroll.c (subtract_reg_term, find_common_reg_term): New functions. (loop_iterations): Use them to determine if loop has a constant number of iterations. Set loop_info->vtop. Don't subtract common reg term from initial_value and final_value if have a do-while loop. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24333 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop.h')
-rw-r--r--gcc/loop.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/loop.h b/gcc/loop.h
index 8d0055e1dd0..de6ce2f762e 100644
--- a/gcc/loop.h
+++ b/gcc/loop.h
@@ -176,7 +176,9 @@ struct loop_info
1: not unrolled.
-1: completely unrolled
>0: holds the unroll exact factor. */
- int unroll_number;
+ unsigned int unroll_number;
+ /* Non-zero if the loop has a NOTE_INSN_LOOP_VTOP. */
+ rtx vtop;
};
/* Definitions used by the basic induction variable discovery code. */