Home
last modified time | relevance | path

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

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineSelect.cpp628 unsigned AndZeros = AndRHS->getValue().logBase2(); in foldSelectICmpAnd() local
631 if (ValZeros > AndZeros) in foldSelectICmpAnd()
632 V = Builder->CreateShl(V, ValZeros - AndZeros); in foldSelectICmpAnd()
633 else if (ValZeros < AndZeros) in foldSelectICmpAnd()
634 V = Builder->CreateLShr(V, AndZeros - ValZeros); in foldSelectICmpAnd()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp813 unsigned AndZeros = AndRHS->getValue().logBase2(); in foldSelectICmpAnd() local
818 if (AndZeros >= ValC->getBitWidth()) in foldSelectICmpAnd()
822 if (ValZeros > AndZeros) in foldSelectICmpAnd()
823 V = Builder->CreateShl(V, ValZeros - AndZeros); in foldSelectICmpAnd()
824 else if (ValZeros < AndZeros) in foldSelectICmpAnd()
825 V = Builder->CreateLShr(V, AndZeros - ValZeros); in foldSelectICmpAnd()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp178 unsigned AndZeros = AndMask.logBase2(); in foldSelectICmpAnd() local
186 if (ValZeros > AndZeros) { in foldSelectICmpAnd()
188 V = Builder.CreateShl(V, ValZeros - AndZeros); in foldSelectICmpAnd()
189 } else if (ValZeros < AndZeros) { in foldSelectICmpAnd()
190 V = Builder.CreateLShr(V, AndZeros - ValZeros); in foldSelectICmpAnd()