[SI] Create Scop Name lazily
commit577902cb1d07b9c39df3f5ffbfb88d9f1552f686
authorPhilip Pfaffe <philip.pfaffe@gmail.com>
Tue, 15 May 2018 14:53:25 +0000 (15 14:53 +0000)
committerPhilip Pfaffe <philip.pfaffe@gmail.com>
Tue, 15 May 2018 14:53:25 +0000 (15 14:53 +0000)
tree55323357757376a8f3980f5e567cefcea6786725
parent8ff9a445a7a786f8ad8b513d0d684b3ce4f8e267
[SI] Create Scop Name lazily

Summary: Creating the Scop name is expensive, because creating the
Region name it's derived from is expensive. So create the name lazily,
because getName() is actually called rarely.

This is a reiteration of r328666, which introduced a use-after-free and
got reverted in r331363.

Differential Revision: https://reviews.llvm.org/D46868

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@332359 91177308-0d34-0410-b5e6-96231b3b80d8
include/polly/ScopInfo.h
lib/Analysis/ScopInfo.cpp