Lines Matching refs:BaseI
1085 if (auto *BaseI = dyn_cast<Instruction>(Base)) { in findBasePointer() local
1086 NewInsts.insert(BaseI); in findBasePointer()
1087 Worklist.insert(BaseI); in findBasePointer()
1090 auto ReplaceBaseInstWith = [&](Value *BDV, Instruction *BaseI, in findBasePointer()
1093 for (User *U : BaseI->users()) in findBasePointer()
1095 if (NewInsts.count(UI) && UI != BaseI) in findBasePointer()
1098 NewInsts.erase(BaseI); in findBasePointer()
1099 ReverseMap.erase(BaseI); in findBasePointer()
1100 BaseI->replaceAllUsesWith(Replacement); in findBasePointer()
1102 assert(States[BDV].isConflict() && States[BDV].getBase() == BaseI); in findBasePointer()
1104 BaseI->eraseFromParent(); in findBasePointer()
1108 Instruction *BaseI = Worklist.pop_back_val(); in findBasePointer() argument
1109 assert(NewInsts.count(BaseI)); in findBasePointer()
1110 Value *Bdv = ReverseMap[BaseI]; in findBasePointer()
1112 if (BaseI->isIdenticalTo(BdvI)) { in findBasePointer()
1113 DEBUG(dbgs() << "Identical Base: " << *BaseI << "\n"); in findBasePointer()
1114 ReplaceBaseInstWith(Bdv, BaseI, Bdv); in findBasePointer()
1117 if (Value *V = SimplifyInstruction(BaseI, DL)) { in findBasePointer()
1118 DEBUG(dbgs() << "Base " << *BaseI << " simplified to " << *V << "\n"); in findBasePointer()
1119 ReplaceBaseInstWith(Bdv, BaseI, V); in findBasePointer()