diff --git a/IGC/Compiler/Optimizer/IntDivConstantReduction.cpp b/IGC/Compiler/Optimizer/IntDivConstantReduction.cpp index e2b878508526..3133f75a7c57 100644 --- a/IGC/Compiler/Optimizer/IntDivConstantReduction.cpp +++ b/IGC/Compiler/Optimizer/IntDivConstantReduction.cpp @@ -170,11 +170,8 @@ struct IntDivConstantReduction : public FunctionPass int shiftAmt = divisor.logBase2(); Value *result; if (isMod) { - if (shiftAmt == bitSize) { // X % MAX_VAL = X - result = dividend; - } else { // X % 2^K = (X & ((1<