HomeSort by relevance Sort by last modified time
    Searched defs:LHSCst (Results 1 - 2 of 2) sorted by null

  /external/llvm/lib/Transforms/InstCombine/
InstCombineAndOrXor.cpp     [all...]
  /external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
InstCombineAndOrXor.cpp 741 ConstantInt *LHSCst = dyn_cast<ConstantInt>(LHS->getOperand(1));
743 if (LHSCst == 0 || RHSCst == 0) return 0;
745 if (LHSCst == RHSCst && LHSCC == RHSCC) {
749 LHSCst->getValue().isPowerOf2()) {
751 return Builder->CreateICmp(LHSCC, NewOr, LHSCst);
755 if (LHSCC == ICmpInst::ICMP_EQ && LHSCst->isZero()) {
757 return Builder->CreateICmp(LHSCC, NewOr, LHSCst);
761 if (LHSCC == ICmpInst::ICMP_SLT && LHSCst->isZero()) {
763 return Builder->CreateICmp(LHSCC, NewAnd, LHSCst);
767 if (LHSCC == ICmpInst::ICMP_SGT && LHSCst->isAllOnesValue())
    [all...]

Completed in 676 milliseconds