Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp510 unsigned C1Log; in foldSelectICmpAndOr() local
522 C1Log = C1->logBase2(); in foldSelectICmpAndOr()
536 C1Log = CmpLHS->getType()->getScalarSizeInBits() - 1; in foldSelectICmpAndOr()
556 bool NeedShift = C1Log != C2Log; in foldSelectICmpAndOr()
568 APInt C1 = APInt::getOneBitSet(V->getType()->getScalarSizeInBits(), C1Log); in foldSelectICmpAndOr()
572 if (C2Log > C1Log) { in foldSelectICmpAndOr()
574 V = Builder.CreateShl(V, C2Log - C1Log); in foldSelectICmpAndOr()
575 } else if (C1Log > C2Log) { in foldSelectICmpAndOr()
576 V = Builder.CreateLShr(V, C1Log - C2Log); in foldSelectICmpAndOr()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp339 unsigned C1Log = C1->logBase2(); in foldSelectICmpAndOr() local
341 if (C2Log > C1Log) { in foldSelectICmpAndOr()
343 V = Builder->CreateShl(V, C2Log - C1Log); in foldSelectICmpAndOr()
344 } else if (C1Log > C2Log) { in foldSelectICmpAndOr()
345 V = Builder->CreateLShr(V, C1Log - C2Log); in foldSelectICmpAndOr()