From: Dong-Heon Jung Date: Wed, 18 Dec 2019 01:01:37 +0000 (+0900) Subject: Set vtable offset as contained (#722) X-Git-Tag: submit/tizen/20210909.063632~10653 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=859064657ce40a8ecfc1ef21cef9fb648ff7ea67;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Set vtable offset as contained (#722) - Can remove a machine instruction which adds vtable offset --- diff --git a/src/coreclr/src/jit/lower.cpp b/src/coreclr/src/jit/lower.cpp index f8068a4..6322be6 100644 --- a/src/coreclr/src/jit/lower.cpp +++ b/src/coreclr/src/jit/lower.cpp @@ -4138,6 +4138,7 @@ GenTree* Lowering::LowerVirtualVtableCall(GenTreeCall* call) BlockRange().InsertBefore(call, std::move(range)); LIR::Range range2 = LIR::SeqTree(comp, lclvNodeStore2); + ContainCheckIndir(tmpTree->AsIndir()); JITDUMP("result of obtaining pointer to virtual table 2nd level indirection:\n"); DISPRANGE(range2); BlockRange().InsertAfter(lclvNodeStore, std::move(range2));