diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-07-24 08:31:07 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-07-24 08:31:07 +0000 |
commit | 8218bff79dbb88b113388c911ebdd173d2ecfd44 (patch) | |
tree | ea73c4893759d64987134135112562c59854df86 /gcc/genmatch.c | |
parent | 1a1910385b612a18272a94daf062cd287a86455c (diff) | |
download | gcc-8218bff79dbb88b113388c911ebdd173d2ecfd44.tar.gz |
2015-07-24 Richard Biener <rguenther@suse.de>
* genmatch.c (add_operator): Allow SSA_NAME as predicate.
* fold-const.c (fold_comparison): Move parameter does not
alias &local simplification ...
* match.pd: ... as a pattern here.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226140 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genmatch.c')
-rw-r--r-- | gcc/genmatch.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/genmatch.c b/gcc/genmatch.c index b4ab7b56e72..cb2377095fe 100644 --- a/gcc/genmatch.c +++ b/gcc/genmatch.c @@ -395,7 +395,9 @@ add_operator (enum tree_code code, const char *id, /* To have INTEGER_CST and friends as "predicate operators". */ && strcmp (tcc, "tcc_constant") != 0 /* And allow CONSTRUCTOR for vector initializers. */ - && !(code == CONSTRUCTOR)) + && !(code == CONSTRUCTOR) + /* Allow SSA_NAME as predicate operator. */ + && !(code == SSA_NAME)) return; /* Treat ADDR_EXPR as atom, thus don't allow matching its operand. */ if (code == ADDR_EXPR) |