[polly] r208181 - Remove unnecessary explicit typing in std::make_pair
Tobias Grosser
tobias at grosser.es
Wed May 7 03:06:33 PDT 2014
Author: grosser
Date: Wed May 7 05:06:33 2014
New Revision: 208181
URL: http://llvm.org/viewvc/llvm-project?rev=208181&view=rev
Log:
Remove unnecessary explicit typing in std::make_pair
Contributed-by: Yabin Hu <yabin.hwu at gmail.com>
Modified:
polly/trunk/lib/CodeGen/CodeGeneration.cpp
polly/trunk/lib/CodeGen/PTXGenerator.cpp
Modified: polly/trunk/lib/CodeGen/CodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/CodeGeneration.cpp?rev=208181&r1=208180&r2=208181&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/CodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGen/CodeGeneration.cpp Wed May 7 05:06:33 2014
@@ -785,7 +785,7 @@ void ClastStmtCodeGen::codegenForGPGPU(c
CmpInst::ICMP_SLE);
const Value *OldIV_ = Statement->getInductionVariableForDimension(2);
Value *OldIV = const_cast<Value *>(OldIV_);
- VMap.insert(std::make_pair<Value *, Value *>(OldIV, IV));
+ VMap.insert(std::make_pair(OldIV, IV));
}
updateWithValueMap(VMap);
Modified: polly/trunk/lib/CodeGen/PTXGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/PTXGenerator.cpp?rev=208181&r1=208180&r2=208181&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/PTXGenerator.cpp (original)
+++ polly/trunk/lib/CodeGen/PTXGenerator.cpp Wed May 7 05:06:33 2014
@@ -97,7 +97,7 @@ void PTXGenerator::createSubfunction(Set
Value *BaseAddr = UsedValues[j];
Type *ArrayTy = BaseAddr->getType();
Value *Param = Builder.CreateBitCast(AI, ArrayTy);
- VMap.insert(std::make_pair<Value *, Value *>(BaseAddr, Param));
+ VMap.insert(std::make_pair(BaseAddr, Param));
AI++;
}
@@ -185,8 +185,7 @@ void PTXGenerator::createSubfunction(Set
assert(OriginalIVS.size() == Substitutions.size() &&
"The size of IVS should be equal to the size of substitutions.");
for (unsigned i = 0; i < OriginalIVS.size(); ++i) {
- VMap.insert(
- std::make_pair<Value *, Value *>(OriginalIVS[i], Substitutions[i]));
+ VMap.insert(std::make_pair(OriginalIVS[i], Substitutions[i]));
}
Builder.CreateBr(ExitBB);
More information about the llvm-commits
mailing list