]> 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>
Wed, 24 Jul 2019 01:28:33 +0000 (01:28 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Wed, 24 Jul 2019 01:28:33 +0000 (01:28 +0000)
commit568b00c67147a32db59bf6d7fca453f41c99f005
tree8002c34e5bb9c1aef3d7ad976d9b62ae7e926980
parent025df40e592d9949ee1689825f3e29e917392962
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.

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

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

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