forked from OSchip/llvm-project
Remove unnecessary explicit typing in std::make_pair
Contributed-by: Yabin Hu <yabin.hwu@gmail.com> llvm-svn: 208181
This commit is contained in:
parent
cfee96a444
commit
ba1724da2f
|
@ -785,7 +785,7 @@ void ClastStmtCodeGen::codegenForGPGPU(const clast_for *F) {
|
||||||
CmpInst::ICMP_SLE);
|
CmpInst::ICMP_SLE);
|
||||||
const Value *OldIV_ = Statement->getInductionVariableForDimension(2);
|
const Value *OldIV_ = Statement->getInductionVariableForDimension(2);
|
||||||
Value *OldIV = const_cast<Value *>(OldIV_);
|
Value *OldIV = const_cast<Value *>(OldIV_);
|
||||||
VMap.insert(std::make_pair<Value *, Value *>(OldIV, IV));
|
VMap.insert(std::make_pair(OldIV, IV));
|
||||||
}
|
}
|
||||||
|
|
||||||
updateWithValueMap(VMap);
|
updateWithValueMap(VMap);
|
||||||
|
|
|
@ -97,7 +97,7 @@ void PTXGenerator::createSubfunction(SetVector<Value *> &UsedValues,
|
||||||
Value *BaseAddr = UsedValues[j];
|
Value *BaseAddr = UsedValues[j];
|
||||||
Type *ArrayTy = BaseAddr->getType();
|
Type *ArrayTy = BaseAddr->getType();
|
||||||
Value *Param = Builder.CreateBitCast(AI, ArrayTy);
|
Value *Param = Builder.CreateBitCast(AI, ArrayTy);
|
||||||
VMap.insert(std::make_pair<Value *, Value *>(BaseAddr, Param));
|
VMap.insert(std::make_pair(BaseAddr, Param));
|
||||||
AI++;
|
AI++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -185,8 +185,7 @@ void PTXGenerator::createSubfunction(SetVector<Value *> &UsedValues,
|
||||||
assert(OriginalIVS.size() == Substitutions.size() &&
|
assert(OriginalIVS.size() == Substitutions.size() &&
|
||||||
"The size of IVS should be equal to the size of substitutions.");
|
"The size of IVS should be equal to the size of substitutions.");
|
||||||
for (unsigned i = 0; i < OriginalIVS.size(); ++i) {
|
for (unsigned i = 0; i < OriginalIVS.size(); ++i) {
|
||||||
VMap.insert(
|
VMap.insert(std::make_pair(OriginalIVS[i], Substitutions[i]));
|
||||||
std::make_pair<Value *, Value *>(OriginalIVS[i], Substitutions[i]));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Builder.CreateBr(ExitBB);
|
Builder.CreateBr(ExitBB);
|
||||||
|
|
Loading…
Reference in New Issue