re PR tree-optimization/82665 (missing value range optimization for memchr)
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
Tue, 1 May 2018 18:20:39 +0000 (18:20 +0000)
committerJeff Law <law@gcc.gnu.org>
Tue, 1 May 2018 18:20:39 +0000 (12:20 -0600)
commit41e2c1b0b4effb21729299c5dd7b3b2abd03d87b
treedbf282b7ccf2c09ed3ae8e666850c2bbf601db30
parent1a142d6e6858e6fb58bab8592ee1223621867f1e
re PR tree-optimization/82665 (missing value range optimization for memchr)

PR tree-optimization/82665
* vr-values.c (vr_values::extract_range_from_binary_expr): Handle
pointer subtraction where arguments come from a memchr call.

        PR tree-optimization/82665
* gcc.dg/tree-ssa/pr82665.c: New test.

From-SVN: r259806
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr82665.c [new file with mode: 0644]
gcc/vr-values.c