@@ -2482,10 +2482,8 @@ class llvm::sroa::AllocaSliceRewriter
2482
2482
}
2483
2483
V = convertValue (DL, IRB, V, NewAllocaTy);
2484
2484
StoreInst *Store = IRB.CreateAlignedStore (V, &NewAI, NewAI.getAlignment ());
2485
- auto LoopParMD =
2486
- makeArrayRef ((unsigned )LLVMContext::MD_mem_parallel_loop_access);
2487
- Store->copyMetadata (SI, LoopParMD);
2488
2485
Pass.DeadInsts .insert (&SI);
2486
+ (void )Store;
2489
2487
DEBUG (dbgs () << " to: " << *Store << " \n " );
2490
2488
return true ;
2491
2489
}
@@ -2547,9 +2545,6 @@ class llvm::sroa::AllocaSliceRewriter
2547
2545
NewSI = IRB.CreateAlignedStore (V, NewPtr, getSliceAlign (V->getType ()),
2548
2546
SI.isVolatile ());
2549
2547
}
2550
- auto LoopParMD =
2551
- makeArrayRef ((unsigned )LLVMContext::MD_mem_parallel_loop_access);
2552
- NewSI->copyMetadata (SI, LoopParMD);
2553
2548
if (SI.isVolatile ())
2554
2549
NewSI->setAtomic (SI.getOrdering (), SI.getSynchScope ());
2555
2550
Pass.DeadInsts .insert (&SI);
@@ -3565,8 +3560,6 @@ bool SROA::presplitLoadsAndStores(AllocaInst &AI, AllocaSlices &AS) {
3565
3560
3566
3561
uint64_t PartOffset = 0 , PartSize = Offsets.Splits .front ();
3567
3562
int Idx = 0 , Size = Offsets.Splits .size ();
3568
- auto LoopParMD =
3569
- makeArrayRef ((unsigned )LLVMContext::MD_mem_parallel_loop_access);
3570
3563
for (;;) {
3571
3564
auto *PartTy = Type::getIntNTy (Ty->getContext (), PartSize * 8 );
3572
3565
auto *PartPtrTy = PartTy->getPointerTo (LI->getPointerAddressSpace ());
@@ -3576,7 +3569,6 @@ bool SROA::presplitLoadsAndStores(AllocaInst &AI, AllocaSlices &AS) {
3576
3569
PartPtrTy, BasePtr->getName () + " ." ),
3577
3570
getAdjustedAlignment (LI, PartOffset, DL), /* IsVolatile*/ false ,
3578
3571
LI->getName ());
3579
- PLoad->copyMetadata (*LI, LoopParMD);
3580
3572
3581
3573
// Append this load onto the list of split loads so we can find it later
3582
3574
// to rewrite the stores.
@@ -3629,7 +3621,7 @@ bool SROA::presplitLoadsAndStores(AllocaInst &AI, AllocaSlices &AS) {
3629
3621
APInt (DL.getPointerSizeInBits (), PartOffset),
3630
3622
PartPtrTy, StoreBasePtr->getName () + " ." ),
3631
3623
getAdjustedAlignment (SI, PartOffset, DL), /* IsVolatile*/ false );
3632
- PStore-> copyMetadata (*LI, LoopParMD) ;
3624
+ ( void )PStore ;
3633
3625
DEBUG (dbgs () << " +" << PartOffset << " :" << *PStore << " \n " );
3634
3626
}
3635
3627
0 commit comments