From d9fbb8e73b5a8ebff13186f7f42f389aafe0e470 Mon Sep 17 00:00:00 2001 From: Egor Pasko Date: Thu, 13 Dec 2007 10:29:57 +0300 Subject: [PATCH] HARMONY-5270 without the 5252 part --- vm/jitrino/src/optimizer/osr.cpp | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/vm/jitrino/src/optimizer/osr.cpp b/vm/jitrino/src/optimizer/osr.cpp index cba811c..4727101 100644 --- a/vm/jitrino/src/optimizer/osr.cpp +++ b/vm/jitrino/src/optimizer/osr.cpp @@ -627,8 +627,14 @@ SsaOpnd* OSR::apply(Type* type, Opcode o } return result; } +Inst* OSR::findInsertionPlace(SsaOpnd* opnd1, SsaOpnd* opnd2){ + + findLeadingOpnd(opnd2->getInst(), opnd2); + SsaOpnd* opnd2Leader = getLeadingOperand(opnd2); + if (opnd2Leader!= 0) { + opnd2 = opnd2Leader; + } -Inst* OSR::findInsertionPlace(SsaOpnd* opnd2, SsaOpnd* opnd1){ Inst* opnd1inst = opnd1->getInst(); Inst* opnd2inst = opnd2->getInst(); Node* block1 = opnd1inst->getNode(); -- 1.4.4