Right -- I found the same thing, it is the ivopt that resets it -- the IV opt pass should have a TODO_update_address_taken.
thanks, David On Thu, Nov 1, 2012 at 2:07 PM, Jakub Jelinek <ja...@redhat.com> wrote: > On Thu, Nov 01, 2012 at 01:57:40PM -0700, Xinliang David Li wrote: >> I looked at it pretty late in the pipeline -- during cfgexpand and I >> had specified -O2 in the command line. > > That was too late, ivopts pass (after pre where tsan pass was put around) > marks it TREE_ADDRESSABLE again, because it creates IV with initial > value &a[0]. > > Jakub