Add -Wdisabled-optimization to loop prefetching pass (PR tree-optimization/79803).
commitc159e770d23491f90de558ff4d029982f9086d5f
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 3 Mar 2017 11:53:56 +0000 (3 11:53 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 3 Mar 2017 11:53:56 +0000 (3 11:53 +0000)
tree819e4d40f5b3dd8e071eb7d0b6bab9fc6953394a
parent7125d9acd7385a7e9a8ff304d7bdd05aa4fb5314
Add -Wdisabled-optimization to loop prefetching pass (PR tree-optimization/79803).

2017-03-03  Martin Liska  <mliska@suse.cz>

PR tree-optimization/79803
* tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
assert.
(pass_loop_prefetch::execute): Disabled optimization if an
assumption about L1 cache size is not met.
2017-03-03  Martin Liska  <mliska@suse.cz>

PR tree-optimization/79803
* gcc.dg/tree-ssa/pr79803.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245869 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr79803.c [new file with mode: 0644]
gcc/tree-ssa-loop-prefetch.c