diff --git a/src/nnvm/nnvm/Transform/Scalar/Combiner.cpp b/src/nnvm/nnvm/Transform/Scalar/Combiner.cpp index 5dc11aebceb5ed65b3595e1080b1e2f4ac98624f..d8c4bd71c089577a951a9fc26fadca1a9b0d1188 100644 --- a/src/nnvm/nnvm/Transform/Scalar/Combiner.cpp +++ b/src/nnvm/nnvm/Transform/Scalar/Combiner.cpp @@ -159,15 +159,15 @@ Value *CombinerPass::simplifySDiv(SDivInst *I) { Value *A, *B, *C; Type *type = I->getType(); ConstantInt *C1; - // A * (powerof2 ** 2) --> A << powerof2 GInt powerOfTwo; - if (match(I, pSDiv(pValue(A), pConstantInt(C1))) && - genericGetPowerOfTwo(C1->getValue(), C1->getType()->getBits(), - powerOfTwo)) { - return builder.buildBinOp<AShrInst>( - A, builder.getConstantInt(type, powerOfTwo), type); - } + // TODO: fold sdiv + // if (match(I, pSDiv(pValue(A), pConstantInt(C1))) && + // genericGetPowerOfTwo(C1->getValue(), C1->getType()->getBits(), + // powerOfTwo)) { + // return builder.buildBinOp<AShrInst>( + // A, builder.getConstantInt(type, powerOfTwo), type); + //} return nullptr; } diff --git a/timestamp b/timestamp index c5f727e24e9631893a96ce93ed054f10f2a049e8..78d445664f2f7ce8c8acee33458f22cb8d378975 100644 --- a/timestamp +++ b/timestamp @@ -1 +1 @@ -Wed Jul 10 10:55:39 UTC 2024 +Wed Jul 10 11:41:01 UTC 2024