diff options
author | tbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-04-24 08:45:38 +0000 |
---|---|---|
committer | tbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-04-24 08:45:38 +0000 |
commit | 0a87e29e6fb3c378c4055c13fd588861fcafe532 (patch) | |
tree | 135f834a8194c86c2b3a36fae801ffa8a70ce8a6 /gcc/print-rtl.c | |
parent | a2c97ec99d9abe3a1581b35cb12e758d50cd3cd3 (diff) | |
download | gcc-0a87e29e6fb3c378c4055c13fd588861fcafe532.tar.gz |
make avail_stores a vec<rtx_insn *>
gcc/ChangeLog:
2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* print-rtl.c (print_rtx_insn_vec): New function.
* print-rtl.h: New prototype.
* store-motion.c (struct st_expr): Make avail_stores a vector.
(st_expr_entry): Adjust.
(free_st_expr_entry): Likewise.
(print_store_motion_mems): Likewise.
(find_moveable_store): Likewise.
(compute_store_table): Likewise.
(delete_store): Likewise.
(build_store_vectors): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235394 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r-- | gcc/print-rtl.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index 85d9b8d5731..a9051279ed7 100644 --- a/gcc/print-rtl.c +++ b/gcc/print-rtl.c @@ -870,6 +870,24 @@ print_simple_rtl (FILE *outf, const_rtx x) flag_simple = 0; } +/* Print the elements of VEC to FILE. */ + +void +print_rtx_insn_vec (FILE *file, const vec<rtx_insn *> &vec) +{ + fputc('{', file); + + unsigned int len = vec.length (); + for (unsigned int i = 0; i < len; i++) + { + print_rtl (file, vec[i]); + if (i < len - 1) + fputs (", ", file); + } + + fputc ('}', file); +} + #ifndef GENERATOR_FILE /* The functions below try to print RTL in a form resembling assembler mnemonics. Because this form is more concise than the "traditional" form |