Searched refs:LHSI (Results 1 – 4 of 4) sorted by relevance
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 1142 Instruction *LHSI, in visitICmpInstWithInstAndIntCst() argument 1146 switch (LHSI->getOpcode()) { in visitICmpInstWithInstAndIntCst() 1148 if (ICI.isEquality() && LHSI->hasOneUse()) { in visitICmpInstWithInstAndIntCst() 1151 unsigned DstBits = LHSI->getType()->getPrimitiveSizeInBits(), in visitICmpInstWithInstAndIntCst() 1152 SrcBits = LHSI->getOperand(0)->getType()->getPrimitiveSizeInBits(); in visitICmpInstWithInstAndIntCst() 1154 computeKnownBits(LHSI->getOperand(0), KnownZero, KnownOne, 0, &ICI); in visitICmpInstWithInstAndIntCst() 1161 return new ICmpInst(ICI.getPredicate(), LHSI->getOperand(0), in visitICmpInstWithInstAndIntCst() 1168 if (ConstantInt *XorCst = dyn_cast<ConstantInt>(LHSI->getOperand(1))) { in visitICmpInstWithInstAndIntCst() 1173 Value *CompareVal = LHSI->getOperand(0); in visitICmpInstWithInstAndIntCst() 1179 Worklist.Add(LHSI); in visitICmpInstWithInstAndIntCst() [all …]
|
D | InstCombineAndOrXor.cpp | 372 Instruction *LHSI = dyn_cast<Instruction>(LHS); in FoldLogicalPlusAnd() local 373 if (!LHSI || LHSI->getNumOperands() != 2 || in FoldLogicalPlusAnd() 374 !isa<ConstantInt>(LHSI->getOperand(1))) return nullptr; in FoldLogicalPlusAnd() 376 ConstantInt *N = cast<ConstantInt>(LHSI->getOperand(1)); in FoldLogicalPlusAnd() 378 switch (LHSI->getOpcode()) { in FoldLogicalPlusAnd() 411 return Builder->CreateSub(LHSI->getOperand(0), RHS, "fold"); in FoldLogicalPlusAnd() 412 return Builder->CreateAdd(LHSI->getOperand(0), RHS, "fold"); in FoldLogicalPlusAnd()
|
D | InstCombineInternal.h | 269 Instruction *FoldFCmp_IntToFP_Cst(FCmpInst &I, Instruction *LHSI,
|
/external/llvm/lib/Transforms/Scalar/ |
D | EarlyCSE.cpp | 147 Instruction *LHSI = LHS.Inst, *RHSI = RHS.Inst; in isEqual() local 150 return LHSI == RHSI; in isEqual() 152 if (LHSI->getOpcode() != RHSI->getOpcode()) in isEqual() 154 if (LHSI->isIdenticalTo(RHSI)) in isEqual() 158 if (BinaryOperator *LHSBinOp = dyn_cast<BinaryOperator>(LHSI)) { in isEqual() 179 if (CmpInst *LHSCmp = dyn_cast<CmpInst>(LHSI)) { in isEqual() 246 Instruction *LHSI = LHS.Inst, *RHSI = RHS.Inst; in isEqual() local 248 return LHSI == RHSI; in isEqual() 249 return LHSI->isIdenticalTo(RHSI); in isEqual()
|