gimple-isel: Fold x CMP y ? -1 : 0 to x CMP y [PR97872]
commit3a6e3ad38a17a03ee0139b49a0946e7b9ded1eb1
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
Tue, 8 Dec 2020 09:00:04 +0000 (8 14:30 +0530)
committerPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
Tue, 8 Dec 2020 09:00:04 +0000 (8 14:30 +0530)
tree7f183717821fc4422d514302c8950b6033ba2d53
parente844c04e35ca2fe9ee2f758a720dd37cbe81e7ef
gimple-isel: Fold x CMP y ? -1 : 0 to x CMP y [PR97872]

gcc/
2020-12-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

PR target/97872
* gimple-isel.cc (gimple_expand_vec_cond_expr): Try to fold
x CMP y ? -1 : 0 to x CMP y.

gcc/testsuite/
2020-12-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

PR target/97872
* gcc.target/arm/pr97872.c: New test.
gcc/gimple-isel.cc
gcc/testsuite/gcc.target/arm/pr97872.c [new file with mode: 0644]