Lines Matching refs:BlockIndex
91 Value *getCompareLoadPairs(unsigned BlockIndex, unsigned &LoadIndex);
92 void emitLoadCompareBlock(unsigned BlockIndex);
93 void emitLoadCompareBlockMultipleLoads(unsigned BlockIndex,
95 void emitLoadCompareByteBlock(unsigned BlockIndex, unsigned GEPIndex);
196 void MemCmpExpansion::emitLoadCompareByteBlock(unsigned BlockIndex,
201 Builder.SetInsertPoint(LoadCmpBlocks[BlockIndex]);
224 PhiRes->addIncoming(Diff, LoadCmpBlocks[BlockIndex]);
226 if (BlockIndex < (LoadCmpBlocks.size() - 1)) {
232 BranchInst::Create(EndBlock, LoadCmpBlocks[BlockIndex + 1], Cmp);
244 Value *MemCmpExpansion::getCompareLoadPairs(unsigned BlockIndex,
258 Builder.SetInsertPoint(LoadCmpBlocks[BlockIndex]);
346 void MemCmpExpansion::emitLoadCompareBlockMultipleLoads(unsigned BlockIndex,
348 Value *Cmp = getCompareLoadPairs(BlockIndex, LoadIndex);
350 BasicBlock *NextBB = (BlockIndex == (LoadCmpBlocks.size() - 1))
352 : LoadCmpBlocks[BlockIndex + 1];
361 if (BlockIndex == LoadCmpBlocks.size() - 1) {
363 PhiRes->addIncoming(Zero, LoadCmpBlocks[BlockIndex]);
376 void MemCmpExpansion::emitLoadCompareBlock(unsigned BlockIndex) {
377 // There is one load per block in this case, BlockIndex == LoadIndex.
378 const LoadEntry &CurLoadEntry = LoadSequence[BlockIndex];
381 MemCmpExpansion::emitLoadCompareByteBlock(BlockIndex,
394 Builder.SetInsertPoint(LoadCmpBlocks[BlockIndex]);
430 ResBlock.PhiSrc1->addIncoming(LoadSrc1, LoadCmpBlocks[BlockIndex]);
431 ResBlock.PhiSrc2->addIncoming(LoadSrc2, LoadCmpBlocks[BlockIndex]);
435 BasicBlock *NextBB = (BlockIndex == (LoadCmpBlocks.size() - 1))
437 : LoadCmpBlocks[BlockIndex + 1];
446 if (BlockIndex == LoadCmpBlocks.size() - 1) {
448 PhiRes->addIncoming(Zero, LoadCmpBlocks[BlockIndex]);