[polly] r304410 - [ScopInfo] Do not lookup key twice [NFC]
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 1 05:46:51 PDT 2017
Author: grosser
Date: Thu Jun 1 07:46:51 2017
New Revision: 304410
URL: http://llvm.org/viewvc/llvm-project?rev=304410&view=rev
Log:
[ScopInfo] Do not lookup key twice [NFC]
Suggested-by: Michael Kruse <llvm at meinersbur.de>
Modified:
polly/trunk/lib/Analysis/ScopInfo.cpp
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=304410&r1=304409&r2=304410&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Thu Jun 1 07:46:51 2017
@@ -2019,7 +2019,7 @@ static std::string getCallParamName(Call
auto Iterator = KnownNames.find(Name);
if (Iterator != KnownNames.end())
- Name = "__" + KnownNames[Name];
+ Name = "__" + Iterator->getValue();
OS << Name;
for (auto &Operand : Call->arg_operands()) {
ConstantInt *Op = cast<ConstantInt>(&Operand);
More information about the llvm-commits
mailing list