From b1e0d9f446532875bc4cc42bcbfc50381b1faa00 Mon Sep 17 00:00:00 2001 From: JUNG DONG-HEON Date: Thu, 5 Dec 2019 16:23:39 +0900 Subject: [PATCH] Set vtable offset as contained - Can remove a machine instruction which adds vtable offset --- src/jit/lower.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jit/lower.cpp b/src/jit/lower.cpp index 809f48f..49b3f8c 100644 --- a/src/jit/lower.cpp +++ b/src/jit/lower.cpp @@ -4011,6 +4011,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