search for: m_sdiv

Displaying 1 result from an estimated 1 matches for "m_sdiv".

Did you mean: g_sdiv
2014 Jul 01
2
[LLVMdev] Probable error in InstCombine
...IN); > } > > int main (void) > { > printf ("%d\n", foo(INT_MIN)); > } This will print -1 or 1, depending on the optimization level. This appears to be the relevant code: InstCombineAddSub.cpp:1556 > // 0 - (X sdiv C) -> (X sdiv -C) > if (match(Op1, m_SDiv(m_Value(X), m_Constant(C))) && > match(Op0, m_Zero())) > return BinaryOperator::CreateSDiv(X, ConstantExpr::getNeg(C)); - David Menendez