Home
last modified time | relevance | path

Searched refs:SDiv (Results 1 – 25 of 225) sorted by relevance

123456789

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp94 bool eliminateSDiv(BinaryOperator *SDiv);
292 bool SimplifyIndvar::eliminateSDiv(BinaryOperator *SDiv) { in eliminateSDiv() argument
294 auto *N = SE->getSCEV(SDiv->getOperand(0)); in eliminateSDiv()
295 auto *D = SE->getSCEV(SDiv->getOperand(1)); in eliminateSDiv()
298 const Loop *L = LI->getLoopFor(SDiv->getParent()); in eliminateSDiv()
305 BinaryOperator::UDiv, SDiv->getOperand(0), SDiv->getOperand(1), in eliminateSDiv()
306 SDiv->getName() + ".udiv", SDiv); in eliminateSDiv()
307 UDiv->setIsExact(SDiv->isExact()); in eliminateSDiv()
308 SDiv->replaceAllUsesWith(UDiv); in eliminateSDiv()
309 LLVM_DEBUG(dbgs() << "INDVARS: Simplified sdiv: " << *SDiv << '\n'); in eliminateSDiv()
[all …]
DIntegerDivision.cpp434 assert((Div->getOpcode() == Instruction::SDiv || in expandDivision()
446 if (Div->getOpcode() == Instruction::SDiv) { in expandDivision()
584 assert((Div->getOpcode() == Instruction::SDiv || in expandDivisionUpTo32Bits()
608 if (Div->getOpcode() == Instruction::SDiv) { in expandDivisionUpTo32Bits()
632 assert((Div->getOpcode() == Instruction::SDiv || in expandDivisionUpTo64Bits()
657 if (Div->getOpcode() == Instruction::SDiv) { in expandDivisionUpTo64Bits()
DBypassSlowDivision.cpp93 return SlowDivOrRem->getOpcode() == Instruction::SDiv || in isSignedOp()
98 return SlowDivOrRem->getOpcode() == Instruction::SDiv || in isDivisionOp()
116 case Instruction::SDiv: in FastDivInsertionTask()
/external/llvm-project/polly/lib/Support/
DSCEVValidator.cpp379 Instruction *SDiv = nullptr) { in visitDivision()
389 if (SDiv) in visitDivision()
390 return visitGenericInst(SDiv, DivExpr); in visitDivision()
411 ValidatorResult visitSDivInstruction(Instruction *SDiv, const SCEV *Expr) { in visitSDivInstruction()
412 assert(SDiv->getOpcode() == Instruction::SDiv && in visitSDivInstruction()
415 auto *Dividend = SE.getSCEV(SDiv->getOperand(0)); in visitSDivInstruction()
416 auto *Divisor = SE.getSCEV(SDiv->getOperand(1)); in visitSDivInstruction()
417 return visitDivision(Dividend, Divisor, Expr, SDiv); in visitSDivInstruction()
453 case Instruction::SDiv: in visitUnknown()
596 Inst->getOpcode() != Instruction::SDiv)) in follow()
DSCEVAffinator.cpp506 PWACtx SCEVAffinator::visitSDivInstruction(Instruction *SDiv) { in visitSDivInstruction() argument
507 assert(SDiv->getOpcode() == Instruction::SDiv && "Assumed SDiv instruction!"); in visitSDivInstruction()
510 auto *Divisor = SDiv->getOperand(1); in visitSDivInstruction()
516 auto *Dividend = SDiv->getOperand(0); in visitSDivInstruction()
545 case Instruction::SDiv: in visitUnknown()
/external/angle/third_party/vulkan-deps/glslang/src/Test/baseResults/
Dspv.320.meshShaderUserDefined.mesh.out134 53: 6(int) SDiv 51 52
142 66: 6(int) SDiv 65 52
150 75: 6(int) SDiv 73 74
157 84: 6(int) SDiv 83 74
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DDivRemPairs.cpp67 M.Key.SignedOp = Div->getOpcode() == Instruction::SDiv; in matchExpandedRem()
87 DivInst->getOpcode() == Instruction::SDiv) && in DivRemPairWorklistEntry()
98 bool isSigned() const { return DivInst->getOpcode() == Instruction::SDiv; } in isSigned()
130 if (I.getOpcode() == Instruction::SDiv) in getWorklist()
/external/deqp-deps/glslang/Test/baseResults/
Dspv.320.meshShaderUserDefined.mesh.out134 53: 6(int) SDiv 51 52
142 66: 6(int) SDiv 65 52
150 75: 6(int) SDiv 73 74
157 84: 6(int) SDiv 83 74
/external/llvm-project/llvm/lib/Transforms/Scalar/
DDivRemPairs.cpp68 M.Key.SignedOp = Div->getOpcode() == Instruction::SDiv; in matchExpandedRem()
89 DivInst->getOpcode() == Instruction::SDiv) && in DivRemPairWorklistEntry()
100 bool isSigned() const { return DivInst->getOpcode() == Instruction::SDiv; } in isSigned()
133 if (I.getOpcode() == Instruction::SDiv) in getWorklist()
/external/llvm-project/mlir/test/Dialect/SPIRV/
Darithmetic-ops.mlir154 // spv.SDiv
158 // CHECK: spv.SDiv
159 %0 = spv.SDiv %arg, %arg : i32
/external/llvm/unittests/Transforms/Utils/
DCloning.cpp147 BinaryOperator *SDiv = BinaryOperator::Create(Instruction::SDiv, V, V); in TEST_F() local
148 EXPECT_FALSE(this->clone(SDiv)->isExact()); in TEST_F()
150 SDiv->setIsExact(true); in TEST_F()
151 EXPECT_TRUE(this->clone(SDiv)->isExact()); in TEST_F()
DIntegerDivision.cpp23 TEST(IntegerDivision, SDiv) { in TEST() argument
42 EXPECT_TRUE(BB->front().getOpcode() == Instruction::SDiv); in TEST()
163 EXPECT_TRUE(BB->front().getOpcode() == Instruction::SDiv); in TEST()
/external/llvm-project/llvm/lib/Transforms/Utils/
DIntegerDivision.cpp434 assert((Div->getOpcode() == Instruction::SDiv || in expandDivision()
446 if (Div->getOpcode() == Instruction::SDiv) { in expandDivision()
584 assert((Div->getOpcode() == Instruction::SDiv || in expandDivisionUpTo32Bits()
608 if (Div->getOpcode() == Instruction::SDiv) { in expandDivisionUpTo32Bits()
632 assert((Div->getOpcode() == Instruction::SDiv || in expandDivisionUpTo64Bits()
657 if (Div->getOpcode() == Instruction::SDiv) { in expandDivisionUpTo64Bits()
DSimplifyIndVar.cpp96 bool eliminateSDiv(BinaryOperator *SDiv);
294 bool SimplifyIndvar::eliminateSDiv(BinaryOperator *SDiv) { in eliminateSDiv() argument
296 auto *N = SE->getSCEV(SDiv->getOperand(0)); in eliminateSDiv()
297 auto *D = SE->getSCEV(SDiv->getOperand(1)); in eliminateSDiv()
300 const Loop *L = LI->getLoopFor(SDiv->getParent()); in eliminateSDiv()
307 BinaryOperator::UDiv, SDiv->getOperand(0), SDiv->getOperand(1), in eliminateSDiv()
308 SDiv->getName() + ".udiv", SDiv); in eliminateSDiv()
309 UDiv->setIsExact(SDiv->isExact()); in eliminateSDiv()
310 SDiv->replaceAllUsesWith(UDiv); in eliminateSDiv()
311 LLVM_DEBUG(dbgs() << "INDVARS: Simplified sdiv: " << *SDiv << '\n'); in eliminateSDiv()
[all …]
DBypassSlowDivision.cpp93 return SlowDivOrRem->getOpcode() == Instruction::SDiv || in isSignedOp()
98 return SlowDivOrRem->getOpcode() == Instruction::SDiv || in isDivisionOp()
116 case Instruction::SDiv: in FastDivInsertionTask()
/external/llvm/lib/Transforms/Utils/
DIntegerDivision.cpp435 assert((Div->getOpcode() == Instruction::SDiv || in expandDivision()
447 if (Div->getOpcode() == Instruction::SDiv) { in expandDivision()
585 assert((Div->getOpcode() == Instruction::SDiv || in expandDivisionUpTo32Bits()
609 if (Div->getOpcode() == Instruction::SDiv) { in expandDivisionUpTo32Bits()
633 assert((Div->getOpcode() == Instruction::SDiv || in expandDivisionUpTo64Bits()
658 if (Div->getOpcode() == Instruction::SDiv) { in expandDivisionUpTo64Bits()
DBypassSlowDivision.cpp222 bool UseDivOp = Opcode == Instruction::SDiv || Opcode == Instruction::UDiv; in bypassSlowDivision()
224 bool UseSignedOp = Opcode == Instruction::SDiv || in bypassSlowDivision()
/external/llvm-project/llvm/test/Transforms/LICM/
Dspeculate.ll68 ; SDiv is safe to speculate if the denominator is known non-zero and
102 ; SDiv is unsafe to speculate if the denominator is not known non-zero.
135 ; SDiv is unsafe to speculate if the denominator is not known to have a zero bit.
168 ; SDiv is unsafe to speculate inside an infinite loop.
/external/llvm/test/Transforms/LICM/
Dspeculate.ll68 ; SDiv is safe to speculate if the denominator is known non-zero and
102 ; SDiv is unsafe to speculate if the denominator is not known non-zero.
135 ; SDiv is unsafe to speculate if the denominator is not known to have a zero bit.
168 ; SDiv is unsafe to speculate inside an infinite loop.
/external/llvm-project/mlir/test/Conversion/StandardToSPIRV/
Dstd-ops-to-spirv.mlir21 // CHECK: spv.SDiv %{{.*}}, %{{.*}}: i32
90 // CHECK: spv.SDiv %{{.*}}, %{{.*}}: vector<2xi8>
152 // CHECK: spv.SDiv %{{.*}}, %{{.*}}: vector<2xi32>
154 // CHECK: spv.SDiv %{{.*}}, %{{.*}}: vector<3xi32>
756 // CHECK: %[[QUOTIENT:.+]] = spv.SDiv %[[ZERO]], %[[FOUR1]] : i32
782 // CHECK: %[[QUOTIENT:.+]] = spv.SDiv %[[FLAT_IDX]], %[[TWO1]] : i32
801 // CHECK-NOT: spv.SDiv
810 // CHECK-NOT: spv.SDiv
831 // CHECK: %[[ACCESS_IDX:.+]] = spv.SDiv %[[ZERO]], %[[FOUR2]] : i32
857 // CHECK: %[[ACCESS_IDX:.+]] = spv.SDiv %[[FLAT_IDX]], %[[TWO2]] : i32
[all …]
Dalloc.mlir51 // CHECK: %[[LOC:.+]] = spv.SDiv
54 // CHECK: %[[LOC:.+]] = spv.SDiv
/external/llvm-project/mlir/test/Dialect/SPIRV/Serialization/
Darithmetic-ops.mlir65 // CHECK: {{%.*}} = spv.SDiv {{%.*}}, {{%.*}} : vector<4xi32>
66 %0 = spv.SDiv %arg0, %arg1 : vector<4xi32>
/external/llvm-project/mlir/test/Conversion/SPIRVToLLVM/
Darithmetic-ops-to-llvm.mlir202 // spv.SDiv
208 %0 = spv.SDiv %arg0, %arg1 : i16
215 %0 = spv.SDiv %arg0, %arg1 : vector<2xi64>
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPUCodeGenPrepare.cpp270 I.getOpcode() == Instruction::SDiv || I.getOpcode() == Instruction::SRem; in isSigned()
339 if (I.getOpcode() == Instruction::SDiv || in promoteUniformOpToI32()
1035 Opc == Instruction::SRem || Opc == Instruction::SDiv); in expandDivRem32()
1044 bool IsDiv = Opc == Instruction::UDiv || Opc == Instruction::SDiv; in expandDivRem32()
1045 bool IsSigned = Opc == Instruction::SRem || Opc == Instruction::SDiv; in expandDivRem32()
1163 bool IsDiv = Opc == Instruction::SDiv || Opc == Instruction::UDiv; in shrinkDivRem64()
1164 bool IsSigned = Opc == Instruction::SDiv || Opc == Instruction::SRem; in shrinkDivRem64()
1189 if (Opc == Instruction::UDiv || Opc == Instruction::SDiv) { in expandDivRem64()
1222 Opc == Instruction::SRem || Opc == Instruction::SDiv) && in visitBinaryOperator()
/external/llvm-project/llvm/unittests/Transforms/Utils/
DIntegerDivisionTest.cpp22 TEST(IntegerDivision, SDiv) { in TEST() argument
41 EXPECT_TRUE(BB->front().getOpcode() == Instruction::SDiv); in TEST()
162 EXPECT_TRUE(BB->front().getOpcode() == Instruction::SDiv); in TEST()

123456789