On Wed, Mar 1, 2017 at 1:03 PM, Bin Cheng <bin.ch...@arm.com> wrote: > Hi, > As reported in PR66768, IVOPTs drops address-space information. Root cause > is IVOPTs fails to preserve base-object during identifying/rewriting address > type iv_use for pointers converted from constant values. This patch just > skips address type iv_use if base-object can't be determined. In the future, > better handling of base-object is needed to fix the issue. Benchmark data > show the added condition is only triggered twice in spec2k6, and the two > cases are actually null-pointer references. I believe that code is dead in > benchmark and is never executed. > > Bootstrap and test on x86_64. Is it OK?
Ok. Richard. > 2017-02-27 Bin Cheng <bin.ch...@arm.com> > > PR tree-optimization/66768 > * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr > iv_use if base object can't be determined. > > 2017-02-27 Bin Cheng <bin.ch...@arm.com> > > PR tree-optimization/66768 > * gcc.target/i386/pr66768.c: New test.