Lines Matching refs:ReplVal
554 Value *ReplVal = OnlyStore->getOperand(0); in rewriteSingleStoreAlloca() local
557 if (ReplVal == LI) in rewriteSingleStoreAlloca()
558 ReplVal = PoisonValue::get(LI->getType()); in rewriteSingleStoreAlloca()
560 convertMetadataToAssumes(LI, ReplVal, DL, AC, &DT); in rewriteSingleStoreAlloca()
561 LI->replaceAllUsesWith(ReplVal); in rewriteSingleStoreAlloca()
654 Value *ReplVal; in promoteSingleBlockAlloca() local
658 ReplVal = UndefValue::get(LI->getType()); in promoteSingleBlockAlloca()
666 ReplVal = std::prev(I)->second->getOperand(0); in promoteSingleBlockAlloca()
669 convertMetadataToAssumes(LI, ReplVal, DL, AC, &DT); in promoteSingleBlockAlloca()
673 if (ReplVal == LI) in promoteSingleBlockAlloca()
674 ReplVal = PoisonValue::get(LI->getType()); in promoteSingleBlockAlloca()
676 LI->replaceAllUsesWith(ReplVal); in promoteSingleBlockAlloca()