re PR middle-end/81719 (Range-based for loop on short fixed size array generates...
authorRichard Biener <rguenther@suse.de>
Tue, 8 Aug 2017 12:51:20 +0000 (12:51 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 8 Aug 2017 12:51:20 +0000 (12:51 +0000)
commit51bd28edcbf49844d696c38af4945ce5fc25ba15
tree84b27b7405d551358230e4089c5e12112127ce6f
parent26d66f28fdb9bea6e05c2c9f9df7870f9d9f76b2
re PR middle-end/81719 (Range-based for loop on short fixed size array generates long unrolled loop)

2017-08-08  Richard Biener  <rguenther@suse.de>

PR middle-end/81719
* tree-ssa-loop-niter.c: Include tree-dfa.h.
(expand_simple_operations): Also look through ADDR_EXPRs with
MEM_REF bases treating them as POINTER_PLUS_EXPR.

* g++.dg/tree-ssa/pr81719.C: New testcase.

From-SVN: r250954
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-ssa/pr81719.C [new file with mode: 0644]
gcc/tree-ssa-loop-niter.c