Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp600 unsigned C1Log; in foldSelectICmpAndOr() local
612 C1Log = C1->logBase2(); in foldSelectICmpAndOr()
626 C1Log = CmpLHS->getType()->getScalarSizeInBits() - 1; in foldSelectICmpAndOr()
646 bool NeedShift = C1Log != C2Log; in foldSelectICmpAndOr()
658 APInt C1 = APInt::getOneBitSet(V->getType()->getScalarSizeInBits(), C1Log); in foldSelectICmpAndOr()
662 if (C2Log > C1Log) { in foldSelectICmpAndOr()
664 V = Builder.CreateShl(V, C2Log - C1Log); in foldSelectICmpAndOr()
665 } else if (C1Log > C2Log) { in foldSelectICmpAndOr()
666 V = Builder.CreateLShr(V, C1Log - C2Log); in foldSelectICmpAndOr()