aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorXionghu Luo <luoxhu@linux.ibm.com>2021-04-07 00:29:32 -0500
committerXionghu Luo <luoxhu@linux.ibm.com>2021-04-07 21:04:22 -0500
commit0fb21ba79919b3c0ff30484546f48074899a3305 (patch)
tree6eda6bb3b91c17ac16edaf7da1fad4f5177908d0 /gcc/fold-const.c
parent299859c2a458062c882c68c2e24022497726408f (diff)
downloadgcc-0fb21ba79919b3c0ff30484546f48074899a3305.zip
gcc-0fb21ba79919b3c0ff30484546f48074899a3305.tar.gz
gcc-0fb21ba79919b3c0ff30484546f48074899a3305.tar.bz2
Improve rtx insn vec output
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.
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index d4c5a9c..2834278 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -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. */