From 859064657ce40a8ecfc1ef21cef9fb648ff7ea67 Mon Sep 17 00:00:00 2001 From: Dong-Heon Jung Date: Wed, 18 Dec 2019 10:01:37 +0900 Subject: [PATCH] Set vtable offset as contained (#722) - Can remove a machine instruction which adds vtable offset --- src/coreclr/src/jit/lower.cpp | 1 + 1 file changed, 1 insertion(+) 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)); -- 2.7.4