projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2ffb0f
)
Set vtable offset as contained (#722)
author
Dong-Heon Jung
<clamp03@gmail.com>
Wed, 18 Dec 2019 01:01:37 +0000
(10:01 +0900)
committer
Sergey Andreenko
<seandree@microsoft.com>
Wed, 18 Dec 2019 01:01:37 +0000
(17:01 -0800)
- Can remove a machine instruction which adds vtable offset
src/coreclr/src/jit/lower.cpp
patch
|
blob
|
history
diff --git
a/src/coreclr/src/jit/lower.cpp
b/src/coreclr/src/jit/lower.cpp
index
f8068a4
..
6322be6
100644
(file)
--- 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));