Lines Matching refs:ReplVal
528 Value *ReplVal = OnlyStore->getOperand(0); in rewriteSingleStoreAlloca() local
534 isa<Instruction>(ReplVal) || !isGuaranteedNotToBePoison(ReplVal); in rewriteSingleStoreAlloca()
576 if (ReplVal == LI) in rewriteSingleStoreAlloca()
577 ReplVal = PoisonValue::get(LI->getType()); in rewriteSingleStoreAlloca()
579 convertMetadataToAssumes(LI, ReplVal, DL, AC, &DT); in rewriteSingleStoreAlloca()
580 LI->replaceAllUsesWith(ReplVal); in rewriteSingleStoreAlloca()
673 Value *ReplVal; in promoteSingleBlockAlloca() local
677 ReplVal = UndefValue::get(LI->getType()); in promoteSingleBlockAlloca()
685 ReplVal = std::prev(I)->second->getOperand(0); in promoteSingleBlockAlloca()
688 convertMetadataToAssumes(LI, ReplVal, DL, AC, &DT); in promoteSingleBlockAlloca()
692 if (ReplVal == LI) in promoteSingleBlockAlloca()
693 ReplVal = PoisonValue::get(LI->getType()); in promoteSingleBlockAlloca()
695 LI->replaceAllUsesWith(ReplVal); in promoteSingleBlockAlloca()