[ScopDetectDiagnostics] Do not format unnamed array names
commit1f3bd90a6a3c1a09b02e2707d37ce9faa761b743
authorTobias Grosser <tobias@grosser.es>
Sun, 12 Feb 2017 10:53:02 +0000 (12 10:53 +0000)
committerTobias Grosser <tobias@grosser.es>
Sun, 12 Feb 2017 10:53:02 +0000 (12 10:53 +0000)
treef395d4329eb778e2addea13f4a5442c6348e1d89
parent20a6f747f16b6e4b6edb7d5a7063c7347c3bf72e
[ScopDetectDiagnostics] Do not format unnamed array names

Formatting unnamed array names is expensive in LLVM as the this requires
deriving the numbered virtual instruction name (e.g., %12) for an llvm::Value,
which is currently not implemented efficiently. As instruction numberes anyhow
do not really carry a lot of information for the user, we just print 'unknown'
instead.

This change reduces the scop detection time from 24 to 19 seconds, for one of
our large-scale inputs. This is a reduction by 21%.

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