]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR tree-optimization/91137 (Wrong code with -O3)
authorBin Cheng <bin.cheng@linux.alibaba.com>
Mon, 2 Sep 2019 10:10:44 +0000 (10:10 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Mon, 2 Sep 2019 10:10:44 +0000 (10:10 +0000)
commit9acf8b1fe286acf9c4897611f760e4422d1f9e35
tree718172f2f6a2127e18e7bf3c0897e4fb44f17484
parent7aeb97d4e00fe149638809f58fc24dfb4e640571
backport: re PR tree-optimization/91137 (Wrong code with -O3)

Backport from mainline
2019-07-18  Bin Cheng  <bin.linux@linux.alibaba.com>

PR tree-optimization/91137
* tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
(tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
Init, use and fini the above new field.
(determine_base_object_1): New function.
(determine_base_object): Reimplement using walk_tree.

2019-07-18  Bin Cheng  <bin.linux@linux.alibaba.com>

PR tree-optimization/91137
* gcc.c-torture/execute/pr91137.c: New test.

From-SVN: r275304
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr91137.c [new file with mode: 0644]
gcc/tree-ssa-loop-ivopts.c