diff options
author | Eli Friedman <efriedma@codeaurora.org> | 2018-03-27 20:51:49 +0000 |
---|---|---|
committer | Eli Friedman <efriedma@codeaurora.org> | 2018-03-27 20:51:49 +0000 |
commit | ac4ad45177908f7b5632da59860578bae0b5009c (patch) | |
tree | 27e5539deff06e26afd255f8ecb63dc66060c092 /polly/lib/Analysis/ScopInfo.cpp | |
parent | b62f86a6b7e6416cbe034b45c4c74800de7f69d9 (diff) | |
download | bcm5719-llvm-ac4ad45177908f7b5632da59860578bae0b5009c.tar.gz bcm5719-llvm-ac4ad45177908f7b5632da59860578bae0b5009c.zip |
[polly] [ScopInfo] Don't pre-compute the name of the Scop's region.
This gets very expensive for basic blocks which don't have a name: it
calls printAsOperand, which numbers the entire module. We don't
normally need the name anyway, though; it's only used for debug dumps,
so don't compute it by default.
Differential Revision: https://reviews.llvm.org/D44946
llvm-svn: 328666
Diffstat (limited to 'polly/lib/Analysis/ScopInfo.cpp')
-rw-r--r-- | polly/lib/Analysis/ScopInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/polly/lib/Analysis/ScopInfo.cpp b/polly/lib/Analysis/ScopInfo.cpp index f5127efc4ff..8ffd6a3c415 100644 --- a/polly/lib/Analysis/ScopInfo.cpp +++ b/polly/lib/Analysis/ScopInfo.cpp @@ -3327,8 +3327,8 @@ Scop::Scop(Region &R, ScalarEvolution &ScalarEvolution, LoopInfo &LI, DominatorTree &DT, ScopDetection::DetectionContext &DC, OptimizationRemarkEmitter &ORE) : IslCtx(isl_ctx_alloc(), isl_ctx_free), SE(&ScalarEvolution), DT(&DT), - R(R), name(R.getNameStr()), HasSingleExitEdge(R.getExitingBlock()), - DC(DC), ORE(ORE), Affinator(this, LI), + R(R), HasSingleExitEdge(R.getExitingBlock()), DC(DC), ORE(ORE), + Affinator(this, LI), ID(getNextID((*R.getEntry()->getParent()).getName().str())) { if (IslOnErrorAbort) isl_options_set_on_error(getIslCtx().get(), ISL_ON_ERROR_ABORT); |