Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp424 unsigned PosOffset = (-*AddC).getZExtValue(); in commonShiftTransforms() local
426 auto isSuitableForPreShift = [PosOffset, &I, AC]() { in commonShiftTransforms()
432 AC->eq(AC->lshr(PosOffset).shl(PosOffset)); in commonShiftTransforms()
434 return I.isExact() && AC->eq(AC->shl(PosOffset).lshr(PosOffset)); in commonShiftTransforms()
436 return I.isExact() && AC->eq(AC->shl(PosOffset).ashr(PosOffset)); in commonShiftTransforms()
441 ? AC->lshr(PosOffset) in commonShiftTransforms()
442 : AC->shl(PosOffset)); in commonShiftTransforms()