Home
last modified time | relevance | path

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

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineSelect.cpp376 Constant *AdjustedRHS; in visitSelectInstWithICmp() local
378 AdjustedRHS = ConstantInt::get(CI->getContext(), CI->getValue() + 1); in visitSelectInstWithICmp()
380 AdjustedRHS = ConstantInt::get(CI->getContext(), CI->getValue() - 1); in visitSelectInstWithICmp()
384 if ((CmpLHS == TrueVal && AdjustedRHS == FalseVal) || in visitSelectInstWithICmp()
385 (CmpLHS == FalseVal && AdjustedRHS == TrueVal)) in visitSelectInstWithICmp()
393 Constant *sextRHS = ConstantExpr::getSExt(AdjustedRHS, SelectTy); in visitSelectInstWithICmp()
402 AdjustedRHS = sextRHS; in visitSelectInstWithICmp()
406 AdjustedRHS = sextRHS; in visitSelectInstWithICmp()
408 Constant *zextRHS = ConstantExpr::getZExt(AdjustedRHS, SelectTy); in visitSelectInstWithICmp()
416 AdjustedRHS = zextRHS; in visitSelectInstWithICmp()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp440 Constant *AdjustedRHS; in visitSelectInstWithICmp() local
442 AdjustedRHS = ConstantInt::get(CI->getContext(), CI->getValue() + 1); in visitSelectInstWithICmp()
444 AdjustedRHS = ConstantInt::get(CI->getContext(), CI->getValue() - 1); in visitSelectInstWithICmp()
448 if ((CmpLHS == TrueVal && AdjustedRHS == FalseVal) || in visitSelectInstWithICmp()
449 (CmpLHS == FalseVal && AdjustedRHS == TrueVal)) in visitSelectInstWithICmp()
457 Constant *sextRHS = ConstantExpr::getSExt(AdjustedRHS, SelectTy); in visitSelectInstWithICmp()
466 AdjustedRHS = sextRHS; in visitSelectInstWithICmp()
470 AdjustedRHS = sextRHS; in visitSelectInstWithICmp()
472 Constant *zextRHS = ConstantExpr::getZExt(AdjustedRHS, SelectTy); in visitSelectInstWithICmp()
480 AdjustedRHS = zextRHS; in visitSelectInstWithICmp()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp716 Constant *AdjustedRHS; in adjustMinMax() local
718 AdjustedRHS = ConstantInt::get(CmpRHS->getType(), *CmpC + 1); in adjustMinMax()
720 AdjustedRHS = ConstantInt::get(CmpRHS->getType(), *CmpC - 1); in adjustMinMax()
726 if ((CmpLHS == TrueVal && AdjustedRHS == FalseVal) || in adjustMinMax()
727 (CmpLHS == FalseVal && AdjustedRHS == TrueVal)) { in adjustMinMax()
734 Constant *SextRHS = ConstantExpr::getSExt(AdjustedRHS, SelTy); in adjustMinMax()
742 AdjustedRHS = SextRHS; in adjustMinMax()
746 AdjustedRHS = SextRHS; in adjustMinMax()
748 Constant *ZextRHS = ConstantExpr::getZExt(AdjustedRHS, SelTy); in adjustMinMax()
755 AdjustedRHS = ZextRHS; in adjustMinMax()
[all …]