aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorliuhongt <hongtao.liu@intel.com>2021-09-02 13:05:54 +0800
committerliuhongt <hongtao.liu@intel.com>2021-09-16 16:35:29 +0800
commita26ff83ed07e33c4aa46f3314553c0d15ca21100 (patch)
tree5f6c5fa4a159fb95184b17896df2a1ada6e72059 /gcc/tree.h
parenta73d59089a9daca7316eeccece13166ad60dbf13 (diff)
downloadgcc-a26ff83ed07e33c4aa46f3314553c0d15ca21100.zip
gcc-a26ff83ed07e33c4aa46f3314553c0d15ca21100.tar.gz
gcc-a26ff83ed07e33c4aa46f3314553c0d15ca21100.tar.bz2
Check mask type when doing cond_op related gimple simplification.
gcc/ChangeLog: PR middle-end/102080 * match.pd: Check mask type when doing cond_op related gimple simplification. * tree.c (is_truth_type_for): New function. * tree.h (is_truth_type_for): New declaration. gcc/testsuite/ChangeLog: PR middle-end/102080 * gcc.target/i386/pr102080.c: New test.
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 7274ba7..8477f89 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -4591,6 +4591,7 @@ extern tree build_string_literal (unsigned, const char * = NULL,
extern tree signed_or_unsigned_type_for (int, tree);
extern tree signed_type_for (tree);
extern tree unsigned_type_for (tree);
+extern bool is_truth_type_for (tree, tree);
extern tree truth_type_for (tree);
extern tree build_pointer_type_for_mode (tree, machine_mode, bool);
extern tree build_pointer_type (tree);