[SI] Create Scop Name lazily
authorPhilip Pfaffe <philip.pfaffe@gmail.com>
Tue, 15 May 2018 14:53:25 +0000 (14:53 +0000)
committerPhilip Pfaffe <philip.pfaffe@gmail.com>
Tue, 15 May 2018 14:53:25 +0000 (14:53 +0000)
commitd477bb9a50b7ccc1b3620de2447bcd18bc78bb79
tree3ee2e17fd0ff7f06ec4db24fa204978acb1f86e2
parent8652c53d291f26691e359c115d58574ddf742a0b
[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

llvm-svn: 332359
polly/include/polly/ScopInfo.h
polly/lib/Analysis/ScopInfo.cpp