Searched refs:LHSI (Results 1 - 4 of 4) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp1051 Instruction *LHSI,
1055 switch (LHSI->getOpcode()) {
1057 if (ICI.isEquality() && LHSI->hasOneUse()) {
1060 unsigned DstBits = LHSI->getType()->getPrimitiveSizeInBits(),
1061 SrcBits = LHSI->getOperand(0)->getType()->getPrimitiveSizeInBits();
1063 computeKnownBits(LHSI->getOperand(0), KnownZero, KnownOne);
1070 return new ICmpInst(ICI.getPredicate(), LHSI->getOperand(0),
1077 if (ConstantInt *XorCst = dyn_cast<ConstantInt>(LHSI->getOperand(1))) {
1082 Value *CompareVal = LHSI->getOperand(0);
1088 Worklist.Add(LHSI);
1050 visitICmpInstWithInstAndIntCst(ICmpInst &ICI, Instruction *LHSI, ConstantInt *RHS) argument
3291 FoldFCmp_IntToFP_Cst(FCmpInst &I, Instruction *LHSI, Constant *RHSC) argument
[all...]
H A DInstCombineAndOrXor.cpp335 Instruction *LHSI = dyn_cast<Instruction>(LHS); local
336 if (!LHSI || LHSI->getNumOperands() != 2 ||
337 !isa<ConstantInt>(LHSI->getOperand(1))) return nullptr;
339 ConstantInt *N = cast<ConstantInt>(LHSI->getOperand(1));
341 switch (LHSI->getOpcode()) {
374 return Builder->CreateSub(LHSI->getOperand(0), RHS, "fold");
375 return Builder->CreateAdd(LHSI->getOperand(0), RHS, "fold");
H A DInstCombine.h161 Instruction *FoldFCmp_IntToFP_Cst(FCmpInst &I, Instruction *LHSI,
/external/llvm/lib/Transforms/Scalar/
H A DEarlyCSE.cpp143 Instruction *LHSI = LHS.Inst, *RHSI = RHS.Inst; local
146 return LHSI == RHSI;
148 if (LHSI->getOpcode() != RHSI->getOpcode()) return false;
149 if (LHSI->isIdenticalTo(RHSI)) return true;
152 if (BinaryOperator *LHSBinOp = dyn_cast<BinaryOperator>(LHSI)) {
173 if (CmpInst *LHSCmp = dyn_cast<CmpInst>(LHSI)) {
245 Instruction *LHSI = LHS.Inst, *RHSI = RHS.Inst; local
247 return LHSI == RHSI;
248 return LHSI->isIdenticalTo(RHSI);

Completed in 139 milliseconds