Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp333 auto *LogicInst = dyn_cast<BinaryOperator>(I.getOperand(0)); in foldShiftOfShiftedLogic() local
334 if (!LogicInst || !LogicInst->isBitwiseLogicOp() || !LogicInst->hasOneUse()) in foldShiftOfShiftedLogic()
358 if (matchFirstShift(LogicInst->getOperand(0))) in foldShiftOfShiftedLogic()
359 Y = LogicInst->getOperand(1); in foldShiftOfShiftedLogic()
360 else if (matchFirstShift(LogicInst->getOperand(1))) in foldShiftOfShiftedLogic()
361 Y = LogicInst->getOperand(0); in foldShiftOfShiftedLogic()
369 return BinaryOperator::Create(LogicInst->getOpcode(), NewShift1, NewShift2); in foldShiftOfShiftedLogic()