]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Improve rtx insn vec output
authorXionghu Luo <luoxhu@linux.ibm.com>
Wed, 7 Apr 2021 05:29:32 +0000 (00:29 -0500)
committerXionghu Luo <luoxhu@linux.ibm.com>
Thu, 8 Apr 2021 02:04:22 +0000 (21:04 -0500)
print_rtl will dump the rtx_insn from current until LAST.  But it is only
useful to see the particular insn that called by print_rtx_insn_vec,
Let's call print_rtl_single to display that insn in the gcse and store-motion
pass dump.

2021-04-07  Xionghu Luo  <luoxhu@linux.ibm.com>

gcc/ChangeLog:

* fold-const.c (fold_single_bit_test): Fix typo.
* print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
instead.

gcc/fold-const.c
gcc/print-rtl.c

index d4c5a9c299f2cee787d600b8ee892d7f0e43d49c..2834278fd76cda4fe8bf022d8750d29951347680 100644 (file)
@@ -7390,7 +7390,7 @@ fold_single_bit_test (location_t loc, enum tree_code code,
   return NULL_TREE;
 }
 
-/* Test whether it is preferable two swap two operands, ARG0 and
+/* Test whether it is preferable to swap two operands, ARG0 and
    ARG1, for example because ARG0 is an integer constant and ARG1
    isn't.  */
 
index 2a56823d3c10e6c7e58866c231f29aa2c7d4cec9..c7982bce50785fa9e8df2fe107088385653cb82e 100644 (file)
@@ -1237,7 +1237,7 @@ print_rtx_insn_vec (FILE *file, const vec<rtx_insn *> &vec)
   unsigned int len = vec.length ();
   for (unsigned int i = 0; i < len; i++)
     {
-      print_rtl (file, vec[i]);
+      print_rtl_single (file, vec[i]);
       if (i < len - 1)
        fputs (", ", file);
     }