[polly] Don't count scops in a global variable.
authorEli Friedman <efriedma@quicinc.com>
Mon, 24 Feb 2020 23:40:06 +0000 (15:40 -0800)
committerEli Friedman <efriedma@quicinc.com>
Tue, 25 Feb 2020 01:12:08 +0000 (17:12 -0800)
commit888b12b270f3fb7b2e4030fec792e24321998c5b
tree5ea6cbff6283bd766580aecd0376e11d1df3118a
parentfe210a1ff2e90093e210bcbcc1184308903c7bdb
[polly] Don't count scops in a global variable.

This can cause issues with thread safety.

Differential Revision: https://reviews.llvm.org/D75089
polly/include/polly/ScopDetection.h
polly/include/polly/ScopInfo.h
polly/lib/Analysis/ScopBuilder.cpp
polly/lib/Analysis/ScopInfo.cpp