re PR tree-optimization/91137 (Wrong code with -O3)
authorBin Cheng <bin.cheng@linux.alibaba.com>
Thu, 18 Jul 2019 08:38:09 +0000 (08:38 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Thu, 18 Jul 2019 08:38:09 +0000 (08:38 +0000)
commit3796e3b399875dac8e6d100c7fe662a91a39ba42
tree6ffa33a39f5685eb630c63384dac2174fc124629
parentf1f10541903b082d27114db38947fb31f5364bcc
re PR tree-optimization/91137 (Wrong code with -O3)

        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
        PR tree-optimization/91137
        * gcc.c-torture/execute/pr91137.c: New test.

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