Re: [committed][AArch64] Predicated SVE comparison folds

2018-05-09 Thread Andreas Schwab
* gcc.target/aarch64/sve/vcond_6.c: Add missing brace. diff --git a/gcc/testsuite/gcc.target/aarch64/sve/vcond_6.c b/gcc/testsuite/gcc.target/aarch64/sve/vcond_6.c index a59f08d553..f41c94c400 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/vcond_6.c +++ b/gcc/testsuite/gcc.target/aarch

[committed][AArch64] Predicated SVE comparison folds

2018-05-08 Thread Richard Sandiford
This patch adds SVE patterns that combine a PTRUE-predicated comparison with a separate AND. The main benefit is for optimising ANDs with the loop predicate, as in the testcase. However, one of the potential drawbacks is that it triggers even for cases in which two naturally-parallel comparisons a