/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineShifts.cpp | 789 if (ShAmtC < SrcWidth && in visitShl() 804 if (ShrAmt < ShAmtC) { in visitShl() 812 if (ShrAmt > ShAmtC) { in visitShl() 825 if (ShrAmt < ShAmtC) { in visitShl() 835 if (ShrAmt > ShAmtC) { in visitShl() 854 unsigned ShDiff = ShrAmtC > ShAmtC ? ShrAmtC - ShAmtC : ShAmtC - ShrAmtC; in visitShl() 1027 if (C1->ult(ShAmtC)) { in visitLShr() 1041 if (C1->ugt(ShAmtC)) { in visitLShr() 1055 assert(*C1 == ShAmtC); in visitLShr() 1074 if (ShAmtC == BitWidth - 1) { in visitLShr() [all …]
|
H A D | InstCombineCalls.cpp | 1259 Constant *ShAmtC; in visitCallInst() local 1260 if (match(II->getArgOperand(2), m_ImmConstant(ShAmtC)) && in visitCallInst() 1261 !ShAmtC->containsConstantExpression()) { in visitCallInst() 1264 Constant *ModuloC = ConstantExpr::getURem(ShAmtC, WidthC); in visitCallInst() 1265 if (ModuloC != ShAmtC) in visitCallInst() 1268 assert(ConstantExpr::getICmp(ICmpInst::ICMP_UGT, WidthC, ShAmtC) == in visitCallInst() 1277 Constant *LeftShiftC = ConstantExpr::getSub(WidthC, ShAmtC); in visitCallInst() 1288 return BinaryOperator::CreateShl(Op0, ShAmtC); in visitCallInst() 1294 ConstantExpr::getSub(WidthC, ShAmtC)); in visitCallInst() 1297 if (Op0 == Op1 && BitWidth == 16 && match(ShAmtC, m_SpecificInt(8))) { in visitCallInst()
|
H A D | InstCombineAddSub.cpp | 959 Constant *ShAmtC = ConstantInt::get(Ty, ShAmt); in foldAddWithConstant() local 960 Value *NewShl = Builder.CreateShl(X, ShAmtC, "sext"); in foldAddWithConstant() 961 return BinaryOperator::CreateAShr(NewShl, ShAmtC); in foldAddWithConstant()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/llvm/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCalls.cpp | 885 Constant *ShAmtC; in visitCallInst() local 886 if (match(II->getArgOperand(2), m_Constant(ShAmtC)) && in visitCallInst() 887 !isa<ConstantExpr>(ShAmtC) && !ShAmtC->containsConstantExpression()) { in visitCallInst() 890 Constant *ModuloC = ConstantExpr::getURem(ShAmtC, WidthC); in visitCallInst() 891 if (ModuloC != ShAmtC) in visitCallInst() 894 assert(ConstantExpr::getICmp(ICmpInst::ICMP_UGT, WidthC, ShAmtC) == in visitCallInst() 903 Constant *LeftShiftC = ConstantExpr::getSub(WidthC, ShAmtC); in visitCallInst() 914 return BinaryOperator::CreateShl(Op0, ShAmtC); in visitCallInst() 920 ConstantExpr::getSub(WidthC, ShAmtC)); in visitCallInst() 923 if (Op0 == Op1 && BitWidth == 16 && match(ShAmtC, m_SpecificInt(8))) { in visitCallInst()
|
H A D | InstCombineAddSub.cpp | 953 Constant *ShAmtC = ConstantInt::get(Ty, ShAmt); in foldAddWithConstant() local 954 Value *NewShl = Builder.CreateShl(X, ShAmtC, "sext"); in foldAddWithConstant() 955 return BinaryOperator::CreateAShr(NewShl, ShAmtC); in foldAddWithConstant()
|
/dports/devel/llvm12/llvm-project-12.0.1.src/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCalls.cpp | 916 Constant *ShAmtC; in visitCallInst() local 917 if (match(II->getArgOperand(2), m_ImmConstant(ShAmtC)) && in visitCallInst() 918 !ShAmtC->containsConstantExpression()) { in visitCallInst() 921 Constant *ModuloC = ConstantExpr::getURem(ShAmtC, WidthC); in visitCallInst() 922 if (ModuloC != ShAmtC) in visitCallInst() 925 assert(ConstantExpr::getICmp(ICmpInst::ICMP_UGT, WidthC, ShAmtC) == in visitCallInst() 934 Constant *LeftShiftC = ConstantExpr::getSub(WidthC, ShAmtC); in visitCallInst() 945 return BinaryOperator::CreateShl(Op0, ShAmtC); in visitCallInst() 951 ConstantExpr::getSub(WidthC, ShAmtC)); in visitCallInst() 954 if (Op0 == Op1 && BitWidth == 16 && match(ShAmtC, m_SpecificInt(8))) { in visitCallInst()
|
H A D | InstCombineAddSub.cpp | 953 Constant *ShAmtC = ConstantInt::get(Ty, ShAmt); in foldAddWithConstant() local 954 Value *NewShl = Builder.CreateShl(X, ShAmtC, "sext"); in foldAddWithConstant() 955 return BinaryOperator::CreateAShr(NewShl, ShAmtC); in foldAddWithConstant()
|
/dports/devel/wasi-compiler-rt12/llvm-project-12.0.1.src/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCalls.cpp | 916 Constant *ShAmtC; in visitCallInst() local 917 if (match(II->getArgOperand(2), m_ImmConstant(ShAmtC)) && in visitCallInst() 918 !ShAmtC->containsConstantExpression()) { in visitCallInst() 921 Constant *ModuloC = ConstantExpr::getURem(ShAmtC, WidthC); in visitCallInst() 922 if (ModuloC != ShAmtC) in visitCallInst() 925 assert(ConstantExpr::getICmp(ICmpInst::ICMP_UGT, WidthC, ShAmtC) == in visitCallInst() 934 Constant *LeftShiftC = ConstantExpr::getSub(WidthC, ShAmtC); in visitCallInst() 945 return BinaryOperator::CreateShl(Op0, ShAmtC); in visitCallInst() 951 ConstantExpr::getSub(WidthC, ShAmtC)); in visitCallInst() 954 if (Op0 == Op1 && BitWidth == 16 && match(ShAmtC, m_SpecificInt(8))) { in visitCallInst()
|
H A D | InstCombineAddSub.cpp | 953 Constant *ShAmtC = ConstantInt::get(Ty, ShAmt); in foldAddWithConstant() local 954 Value *NewShl = Builder.CreateShl(X, ShAmtC, "sext"); in foldAddWithConstant() 955 return BinaryOperator::CreateAShr(NewShl, ShAmtC); in foldAddWithConstant()
|
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCalls.cpp | 1120 Constant *ShAmtC; in visitCallInst() local 1121 if (match(II->getArgOperand(2), m_ImmConstant(ShAmtC)) && in visitCallInst() 1122 !ShAmtC->containsConstantExpression()) { in visitCallInst() 1125 Constant *ModuloC = ConstantExpr::getURem(ShAmtC, WidthC); in visitCallInst() 1126 if (ModuloC != ShAmtC) in visitCallInst() 1129 assert(ConstantExpr::getICmp(ICmpInst::ICMP_UGT, WidthC, ShAmtC) == in visitCallInst() 1138 Constant *LeftShiftC = ConstantExpr::getSub(WidthC, ShAmtC); in visitCallInst() 1149 return BinaryOperator::CreateShl(Op0, ShAmtC); in visitCallInst() 1155 ConstantExpr::getSub(WidthC, ShAmtC)); in visitCallInst() 1158 if (Op0 == Op1 && BitWidth == 16 && match(ShAmtC, m_SpecificInt(8))) { in visitCallInst()
|
H A D | InstCombineAddSub.cpp | 959 Constant *ShAmtC = ConstantInt::get(Ty, ShAmt); in foldAddWithConstant() local 960 Value *NewShl = Builder.CreateShl(X, ShAmtC, "sext"); in foldAddWithConstant() 961 return BinaryOperator::CreateAShr(NewShl, ShAmtC); in foldAddWithConstant()
|
/dports/graphics/llvm-mesa/llvm-13.0.1.src/lib/Transforms/InstCombine/ |
H A D | InstCombineCalls.cpp | 1120 Constant *ShAmtC; in visitCallInst() local 1121 if (match(II->getArgOperand(2), m_ImmConstant(ShAmtC)) && in visitCallInst() 1122 !ShAmtC->containsConstantExpression()) { in visitCallInst() 1125 Constant *ModuloC = ConstantExpr::getURem(ShAmtC, WidthC); in visitCallInst() 1126 if (ModuloC != ShAmtC) in visitCallInst() 1129 assert(ConstantExpr::getICmp(ICmpInst::ICMP_UGT, WidthC, ShAmtC) == in visitCallInst() 1138 Constant *LeftShiftC = ConstantExpr::getSub(WidthC, ShAmtC); in visitCallInst() 1149 return BinaryOperator::CreateShl(Op0, ShAmtC); in visitCallInst() 1155 ConstantExpr::getSub(WidthC, ShAmtC)); in visitCallInst() 1158 if (Op0 == Op1 && BitWidth == 16 && match(ShAmtC, m_SpecificInt(8))) { in visitCallInst()
|
H A D | InstCombineAddSub.cpp | 960 Constant *ShAmtC = ConstantInt::get(Ty, ShAmt); in foldAddWithConstant() local 961 Value *NewShl = Builder.CreateShl(X, ShAmtC, "sext"); in foldAddWithConstant() 962 return BinaryOperator::CreateAShr(NewShl, ShAmtC); in foldAddWithConstant()
|
/dports/lang/rust/rustc-1.58.1-src/src/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCalls.cpp | 1120 Constant *ShAmtC; in visitCallInst() local 1121 if (match(II->getArgOperand(2), m_ImmConstant(ShAmtC)) && in visitCallInst() 1122 !ShAmtC->containsConstantExpression()) { in visitCallInst() 1125 Constant *ModuloC = ConstantExpr::getURem(ShAmtC, WidthC); in visitCallInst() 1126 if (ModuloC != ShAmtC) in visitCallInst() 1129 assert(ConstantExpr::getICmp(ICmpInst::ICMP_UGT, WidthC, ShAmtC) == in visitCallInst() 1138 Constant *LeftShiftC = ConstantExpr::getSub(WidthC, ShAmtC); in visitCallInst() 1149 return BinaryOperator::CreateShl(Op0, ShAmtC); in visitCallInst() 1155 ConstantExpr::getSub(WidthC, ShAmtC)); in visitCallInst() 1158 if (Op0 == Op1 && BitWidth == 16 && match(ShAmtC, m_SpecificInt(8))) { in visitCallInst()
|
H A D | InstCombineAddSub.cpp | 959 Constant *ShAmtC = ConstantInt::get(Ty, ShAmt); in foldAddWithConstant() local 960 Value *NewShl = Builder.CreateShl(X, ShAmtC, "sext"); in foldAddWithConstant() 961 return BinaryOperator::CreateAShr(NewShl, ShAmtC); in foldAddWithConstant()
|
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCalls.cpp | 1120 Constant *ShAmtC; in visitCallInst() local 1121 if (match(II->getArgOperand(2), m_ImmConstant(ShAmtC)) && in visitCallInst() 1122 !ShAmtC->containsConstantExpression()) { in visitCallInst() 1125 Constant *ModuloC = ConstantExpr::getURem(ShAmtC, WidthC); in visitCallInst() 1126 if (ModuloC != ShAmtC) in visitCallInst() 1129 assert(ConstantExpr::getICmp(ICmpInst::ICMP_UGT, WidthC, ShAmtC) == in visitCallInst() 1138 Constant *LeftShiftC = ConstantExpr::getSub(WidthC, ShAmtC); in visitCallInst() 1149 return BinaryOperator::CreateShl(Op0, ShAmtC); in visitCallInst() 1155 ConstantExpr::getSub(WidthC, ShAmtC)); in visitCallInst() 1158 if (Op0 == Op1 && BitWidth == 16 && match(ShAmtC, m_SpecificInt(8))) { in visitCallInst()
|
H A D | InstCombineAddSub.cpp | 959 Constant *ShAmtC = ConstantInt::get(Ty, ShAmt); in foldAddWithConstant() local 960 Value *NewShl = Builder.CreateShl(X, ShAmtC, "sext"); in foldAddWithConstant() 961 return BinaryOperator::CreateAShr(NewShl, ShAmtC); in foldAddWithConstant()
|
/dports/devel/llvm13/llvm-project-13.0.1.src/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCalls.cpp | 1120 Constant *ShAmtC; in visitCallInst() local 1121 if (match(II->getArgOperand(2), m_ImmConstant(ShAmtC)) && in visitCallInst() 1122 !ShAmtC->containsConstantExpression()) { in visitCallInst() 1125 Constant *ModuloC = ConstantExpr::getURem(ShAmtC, WidthC); in visitCallInst() 1126 if (ModuloC != ShAmtC) in visitCallInst() 1129 assert(ConstantExpr::getICmp(ICmpInst::ICMP_UGT, WidthC, ShAmtC) == in visitCallInst() 1138 Constant *LeftShiftC = ConstantExpr::getSub(WidthC, ShAmtC); in visitCallInst() 1149 return BinaryOperator::CreateShl(Op0, ShAmtC); in visitCallInst() 1155 ConstantExpr::getSub(WidthC, ShAmtC)); in visitCallInst() 1158 if (Op0 == Op1 && BitWidth == 16 && match(ShAmtC, m_SpecificInt(8))) { in visitCallInst()
|
H A D | InstCombineAddSub.cpp | 959 Constant *ShAmtC = ConstantInt::get(Ty, ShAmt); in foldAddWithConstant() local 960 Value *NewShl = Builder.CreateShl(X, ShAmtC, "sext"); in foldAddWithConstant() 961 return BinaryOperator::CreateAShr(NewShl, ShAmtC); in foldAddWithConstant()
|
/dports/devel/tinygo/tinygo-0.14.1/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCalls.cpp | 1955 Constant *ShAmtC; in visitCallInst() local 1956 if (match(II->getArgOperand(2), m_Constant(ShAmtC)) && in visitCallInst() 1957 !isa<ConstantExpr>(ShAmtC) && !ShAmtC->containsConstantExpression()) { in visitCallInst() 1960 Constant *ModuloC = ConstantExpr::getURem(ShAmtC, WidthC); in visitCallInst() 1961 if (ModuloC != ShAmtC) { in visitCallInst() 1965 assert(ConstantExpr::getICmp(ICmpInst::ICMP_UGT, WidthC, ShAmtC) == in visitCallInst() 1974 Constant *LeftShiftC = ConstantExpr::getSub(WidthC, ShAmtC); in visitCallInst() 1985 return BinaryOperator::CreateShl(Op0, ShAmtC); in visitCallInst() 1991 ConstantExpr::getSub(WidthC, ShAmtC)); in visitCallInst() 1994 if (Op0 == Op1 && BitWidth == 16 && match(ShAmtC, m_SpecificInt(8))) { in visitCallInst()
|
/dports/devel/llvm10/llvm-10.0.1.src/lib/Transforms/InstCombine/ |
H A D | InstCombineCalls.cpp | 1955 Constant *ShAmtC; in visitCallInst() local 1956 if (match(II->getArgOperand(2), m_Constant(ShAmtC)) && in visitCallInst() 1957 !isa<ConstantExpr>(ShAmtC) && !ShAmtC->containsConstantExpression()) { in visitCallInst() 1960 Constant *ModuloC = ConstantExpr::getURem(ShAmtC, WidthC); in visitCallInst() 1961 if (ModuloC != ShAmtC) { in visitCallInst() 1965 assert(ConstantExpr::getICmp(ICmpInst::ICMP_UGT, WidthC, ShAmtC) == in visitCallInst() 1974 Constant *LeftShiftC = ConstantExpr::getSub(WidthC, ShAmtC); in visitCallInst() 1985 return BinaryOperator::CreateShl(Op0, ShAmtC); in visitCallInst() 1991 ConstantExpr::getSub(WidthC, ShAmtC)); in visitCallInst() 1994 if (Op0 == Op1 && BitWidth == 16 && match(ShAmtC, m_SpecificInt(8))) { in visitCallInst()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCalls.cpp | 1955 Constant *ShAmtC; in visitCallInst() local 1956 if (match(II->getArgOperand(2), m_Constant(ShAmtC)) && in visitCallInst() 1957 !isa<ConstantExpr>(ShAmtC) && !ShAmtC->containsConstantExpression()) { in visitCallInst() 1960 Constant *ModuloC = ConstantExpr::getURem(ShAmtC, WidthC); in visitCallInst() 1961 if (ModuloC != ShAmtC) { in visitCallInst() 1965 assert(ConstantExpr::getICmp(ICmpInst::ICMP_UGT, WidthC, ShAmtC) == in visitCallInst() 1974 Constant *LeftShiftC = ConstantExpr::getSub(WidthC, ShAmtC); in visitCallInst() 1985 return BinaryOperator::CreateShl(Op0, ShAmtC); in visitCallInst() 1991 ConstantExpr::getSub(WidthC, ShAmtC)); in visitCallInst() 1994 if (Op0 == Op1 && BitWidth == 16 && match(ShAmtC, m_SpecificInt(8))) { in visitCallInst()
|
/dports/devel/llvm90/llvm-9.0.1.src/lib/Transforms/InstCombine/ |
H A D | InstCombineCalls.cpp | 1949 Constant *ShAmtC; in visitCallInst() local 1950 if (match(II->getArgOperand(2), m_Constant(ShAmtC)) && in visitCallInst() 1951 !isa<ConstantExpr>(ShAmtC) && !ShAmtC->containsConstantExpression()) { in visitCallInst() 1954 Constant *ModuloC = ConstantExpr::getURem(ShAmtC, WidthC); in visitCallInst() 1955 if (ModuloC != ShAmtC) { in visitCallInst() 1959 assert(ConstantExpr::getICmp(ICmpInst::ICMP_UGT, WidthC, ShAmtC) == in visitCallInst() 1968 Constant *LeftShiftC = ConstantExpr::getSub(WidthC, ShAmtC); in visitCallInst() 1979 return BinaryOperator::CreateShl(Op0, ShAmtC); in visitCallInst() 1985 ConstantExpr::getSub(WidthC, ShAmtC)); in visitCallInst() 1988 if (Op0 == Op1 && BitWidth == 16 && match(ShAmtC, m_SpecificInt(8))) { in visitCallInst()
|
/dports/devel/llvm-cheri/llvm-project-37c49ff00e3eadce5d8703fdc4497f28458c64a8/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCalls.cpp | 2215 Constant *ShAmtC; in visitCallInst() local 2216 if (match(II->getArgOperand(2), m_Constant(ShAmtC)) && in visitCallInst() 2217 !isa<ConstantExpr>(ShAmtC) && !ShAmtC->containsConstantExpression()) { in visitCallInst() 2220 Constant *ModuloC = ConstantExpr::getURem(ShAmtC, WidthC); in visitCallInst() 2221 if (ModuloC != ShAmtC) in visitCallInst() 2224 assert(ConstantExpr::getICmp(ICmpInst::ICMP_UGT, WidthC, ShAmtC) == in visitCallInst() 2233 Constant *LeftShiftC = ConstantExpr::getSub(WidthC, ShAmtC); in visitCallInst() 2244 return BinaryOperator::CreateShl(Op0, ShAmtC); in visitCallInst() 2250 ConstantExpr::getSub(WidthC, ShAmtC)); in visitCallInst() 2253 if (Op0 == Op1 && BitWidth == 16 && match(ShAmtC, m_SpecificInt(8))) { in visitCallInst()
|
/dports/devel/llvm11/llvm-11.0.1.src/lib/Transforms/InstCombine/ |
H A D | InstCombineCalls.cpp | 2033 Constant *ShAmtC; in visitCallInst() local 2034 if (match(II->getArgOperand(2), m_Constant(ShAmtC)) && in visitCallInst() 2035 !isa<ConstantExpr>(ShAmtC) && !ShAmtC->containsConstantExpression()) { in visitCallInst() 2038 Constant *ModuloC = ConstantExpr::getURem(ShAmtC, WidthC); in visitCallInst() 2039 if (ModuloC != ShAmtC) in visitCallInst() 2042 assert(ConstantExpr::getICmp(ICmpInst::ICMP_UGT, WidthC, ShAmtC) == in visitCallInst() 2051 Constant *LeftShiftC = ConstantExpr::getSub(WidthC, ShAmtC); in visitCallInst() 2062 return BinaryOperator::CreateShl(Op0, ShAmtC); in visitCallInst() 2068 ConstantExpr::getSub(WidthC, ShAmtC)); in visitCallInst() 2071 if (Op0 == Op1 && BitWidth == 16 && match(ShAmtC, m_SpecificInt(8))) { in visitCallInst()
|