Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp332 auto *LogicInst = dyn_cast<BinaryOperator>(I.getOperand(0)); in foldShiftOfShiftedLogic() local
333 if (!LogicInst || !LogicInst->isBitwiseLogicOp() || !LogicInst->hasOneUse()) in foldShiftOfShiftedLogic()
356 if (matchFirstShift(LogicInst->getOperand(0))) in foldShiftOfShiftedLogic()
357 Y = LogicInst->getOperand(1); in foldShiftOfShiftedLogic()
358 else if (matchFirstShift(LogicInst->getOperand(1))) in foldShiftOfShiftedLogic()
359 Y = LogicInst->getOperand(0); in foldShiftOfShiftedLogic()
367 return BinaryOperator::Create(LogicInst->getOpcode(), NewShift1, NewShift2); in foldShiftOfShiftedLogic()