Index: vm/jitrino/src/codegenerator/ia32/Ia32BranchTrans.cpp =================================================================== --- vm/jitrino/src/codegenerator/ia32/Ia32BranchTrans.cpp (revision 593047) +++ vm/jitrino/src/codegenerator/ia32/Ia32BranchTrans.cpp (working copy) @@ -151,7 +151,7 @@ } static void mapDefsPerEdge(StlMap& defsPerEdge, Node* node, Opnd* opnd) { - assert(opnd->getDefScope() == Opnd::DefScope_Variable); + assert(opnd->getDefScope() != Opnd::DefScope_Variable); const Edges& inEdges = node->getInEdges(); for (Edges::const_iterator ite = inEdges.begin(), ende = inEdges.end(); ite!=ende; ++ite) { Edge* edge = *ite; @@ -236,7 +236,7 @@ } } cmpOp1 = getMOVsChainSource(cmpInst, cmpOp1); - if (cmpOp1->getDefScope() == Opnd::DefScope_Variable) { + if (cmpOp1->getDefScope() != Opnd::DefScope_Variable) { if(loopHeaders[bb]) continue; cmpOp2 = getMOVsChainSource(cmpInst, cmpOp2);