Home
last modified time | relevance | path

Searched refs:EntryAI (Results 1 – 2 of 2) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp254 AllocaInst *EntryAI = dyn_cast<AllocaInst>(FirstInst); in visitAllocaInst() local
255 if (!EntryAI || !EntryAI->getAllocatedType()->isSized() || in visitAllocaInst()
256 DL.getTypeAllocSize(EntryAI->getAllocatedType()) != 0) { in visitAllocaInst()
263 if (EntryAI->getAlignment() == 0) in visitAllocaInst()
264 EntryAI->setAlignment( in visitAllocaInst()
265 DL.getPrefTypeAlignment(EntryAI->getAllocatedType())); in visitAllocaInst()
269 unsigned MaxAlign = std::max(EntryAI->getAlignment(), in visitAllocaInst()
271 EntryAI->setAlignment(MaxAlign); in visitAllocaInst()
272 if (AI.getType() != EntryAI->getType()) in visitAllocaInst()
273 return new BitCastInst(EntryAI, AI.getType()); in visitAllocaInst()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp370 AllocaInst *EntryAI = dyn_cast<AllocaInst>(FirstInst); in visitAllocaInst() local
371 if (!EntryAI || !EntryAI->getAllocatedType()->isSized() || in visitAllocaInst()
372 DL.getTypeAllocSize(EntryAI->getAllocatedType()) != 0) { in visitAllocaInst()
379 if (EntryAI->getAlignment() == 0) in visitAllocaInst()
380 EntryAI->setAlignment( in visitAllocaInst()
381 MaybeAlign(DL.getPrefTypeAlignment(EntryAI->getAllocatedType()))); in visitAllocaInst()
386 std::max(EntryAI->getAlignment(), AI.getAlignment())); in visitAllocaInst()
387 EntryAI->setAlignment(MaxAlign); in visitAllocaInst()
388 if (AI.getType() != EntryAI->getType()) in visitAllocaInst()
389 return new BitCastInst(EntryAI, AI.getType()); in visitAllocaInst()
[all …]