File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6858,8 +6858,8 @@ void LoopVectorizationCostModel::collectValuesToIgnore() {
6858
6858
if ((SI = dyn_cast<StoreInst>(&I)) &&
6859
6859
Legal->isInvariantAddressOfReduction (SI->getPointerOperand ())) {
6860
6860
ValuesToIgnore.insert (&I);
6861
- auto I = DeadInvariantStoreOps. insert ({ SI->getPointerOperand (), {}});
6862
- I. first -> second . push_back ( SI->getValueOperand ());
6861
+ DeadInvariantStoreOps[ SI->getPointerOperand ()]. push_back (
6862
+ SI->getValueOperand ());
6863
6863
}
6864
6864
6865
6865
if (VecValuesToIgnore.contains (&I) || ValuesToIgnore.contains (&I))
@@ -8084,9 +8084,9 @@ void VPRecipeBuilder::createSwitchEdgeMasks(SwitchInst *SI) {
8084
8084
// ignored - they will get there anyhow.
8085
8085
if (Dst == DefaultDst)
8086
8086
continue ;
8087
- auto I = Dst2Compares. insert ({ Dst, {}}) ;
8087
+ auto &Compares = Dst2Compares[ Dst] ;
8088
8088
VPValue *V = getVPValueOrAddLiveIn (C.getCaseValue ());
8089
- I. first -> second .push_back (Builder.createICmp (CmpInst::ICMP_EQ, Cond, V));
8089
+ Compares .push_back (Builder.createICmp (CmpInst::ICMP_EQ, Cond, V));
8090
8090
}
8091
8091
8092
8092
// We need to handle 2 separate cases below for all entries in Dst2Compares,
You can’t perform that action at this time.
0 commit comments