Lines Matching full:instruction
33 if (CE->getOpcode() == Instruction::BitCast ||
34 CE->getOpcode() == Instruction::GetElementPtr)
48 SmallVectorImpl<Instruction *> &ToDelete,
55 User *U = cast<Instruction>(*UI);
135 // Otherwise, the transform is safe. Remember the copy instruction.
146 SmallVectorImpl<Instruction *> &ToDelete) {
153 Instruction *InstCombiner::visitAllocaInst(AllocaInst &AI) {
181 // insert our getelementptr instruction...
187 Instruction *GEP =
216 // Get the first instruction in the entry block.
218 Instruction *FirstInst = EntryBlock.getFirstNonPHIOrDbg();
255 SmallVector<Instruction *, 4> ToDelete;
265 Instruction *NewI
282 static Instruction *InstCombineLoadCast(InstCombiner &IC, LoadInst &LI,
337 Instruction *InstCombiner::visitLoadInst(LoadInst &LI) {
356 if (Instruction *Res = InstCombineLoadCast(*this, LI, TD))
375 // Insert a new store to null instruction before the load to indicate
377 // an unreachable instruction directly because we cannot modify the
389 // Insert a new store to null instruction before the load to indicate that
391 // unreachable instruction directly because we cannot modify the CFG.
400 if (Instruction *Res = InstCombineLoadCast(*this, LI, TD))
449 static Instruction *InstCombineStoreToCast(InstCombiner &IC, StoreInst &SI) {
510 Instruction::CastOps opcode = Instruction::BitCast;
515 opcode = Instruction::IntToPtr;
518 opcode = Instruction::PtrToInt;
554 if (Instruction *BI = dyn_cast<Instruction>(B))
555 if (cast<Instruction>(A)->isIdenticalToWhenDefined(BI))
562 Instruction *InstCombiner::visitStoreInst(StoreInst &SI) {
647 if (Instruction *U = dyn_cast<Instruction>(Val))
660 if (Instruction *Res = InstCombineStoreToCast(*this, SI))
664 if (Instruction *Res = InstCombineStoreToCast(*this, SI))
668 // If this store is the last instruction in the basic block (possibly
733 // else' case. there is an instruction before the branch.