Set vtable offset as contained
authorJUNG DONG-HEON <dheon.jung@samsung.com>
Thu, 5 Dec 2019 07:23:39 +0000 (16:23 +0900)
committer이형주/Common Platform Lab(SR)/Staff Engineer/삼성전자 <leee.lee@samsung.com>
Wed, 13 May 2020 23:38:04 +0000 (08:38 +0900)
- Can remove a machine instruction which adds vtable offset

src/jit/lower.cpp

index 809f48f..49b3f8c 100644 (file)
@@ -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));