Lines Matching refs:SpillSlot
70 void insertPHIStores(PHINode *OriginalPHI, AllocaInst *SpillSlot);
72 insertPHIStore(BasicBlock *PredBlock, Value *PredVal, AllocaInst *SpillSlot,
75 void replaceUseWithLoad(Value *V, Use &U, AllocaInst *&SpillSlot,
874 AllocaInst *SpillSlot = insertPHILoads(PN, F); in demotePHIsOnFunclets() local
875 if (SpillSlot) in demotePHIsOnFunclets()
876 insertPHIStores(PN, SpillSlot); in demotePHIsOnFunclets()
1229 AllocaInst *SpillSlot = nullptr; in insertPHILoads() local
1235 SpillSlot = new AllocaInst(PN->getType(), DL->getAllocaAddrSpace(), nullptr, in insertPHILoads()
1238 Value *V = new LoadInst(PN->getType(), SpillSlot, in insertPHILoads()
1242 return SpillSlot; in insertPHILoads()
1255 replaceUseWithLoad(PN, U, SpillSlot, Loads, F); in insertPHILoads()
1257 return SpillSlot; in insertPHILoads()
1265 AllocaInst *SpillSlot) { in insertPHIStores() argument
1289 insertPHIStore(PN->getIncomingBlock(i), PredVal, SpillSlot, Worklist); in insertPHIStores()
1295 insertPHIStore(PredBlock, InVal, SpillSlot, Worklist); in insertPHIStores()
1302 BasicBlock *PredBlock, Value *PredVal, AllocaInst *SpillSlot, in insertPHIStore() argument
1312 new StoreInst(PredVal, SpillSlot, PredBlock->getTerminator()); in insertPHIStore()
1316 Value *V, Use &U, AllocaInst *&SpillSlot, in replaceUseWithLoad() argument
1319 if (!SpillSlot) in replaceUseWithLoad()
1320 SpillSlot = new AllocaInst(V->getType(), DL->getAllocaAddrSpace(), nullptr, in replaceUseWithLoad()
1379 Load = new LoadInst(V->getType(), SpillSlot, in replaceUseWithLoad()
1386 auto *Load = new LoadInst(V->getType(), SpillSlot, in replaceUseWithLoad()