diff options
author | Philip Pfaffe <philip.pfaffe@gmail.com> | 2018-05-15 14:53:25 +0000 |
---|---|---|
committer | Philip Pfaffe <philip.pfaffe@gmail.com> | 2018-05-15 14:53:25 +0000 |
commit | d477bb9a50b7ccc1b3620de2447bcd18bc78bb79 (patch) | |
tree | 3ee2e17fd0ff7f06ec4db24fa204978acb1f86e2 /llvm/unittests/Support/CommandLineTest.cpp | |
parent | 8652c53d291f26691e359c115d58574ddf742a0b (diff) | |
download | llvm-d477bb9a50b7ccc1b3620de2447bcd18bc78bb79.zip llvm-d477bb9a50b7ccc1b3620de2447bcd18bc78bb79.tar.gz llvm-d477bb9a50b7ccc1b3620de2447bcd18bc78bb79.tar.bz2 |
[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
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions