Hoist the nullchecks for 'this' object (#68588)
authorKunal Pathak <Kunal.Pathak@microsoft.com>
Fri, 29 Apr 2022 17:46:29 +0000 (10:46 -0700)
committerGitHub <noreply@github.com>
Fri, 29 Apr 2022 17:46:29 +0000 (10:46 -0700)
commit7f034cfeb7695b062680275ab2bdf295a7794156
treecaa3a48cd039a7a85d05cee24db980a9a777169c
parent1047b63bb171e1c29044f47a436d90fe106c1270
Hoist the nullchecks for 'this' object (#68588)

* CSE nullcheck involving 'this'

* Move the nullcheck to hoistable only

* Minor fix to display IG01 weight correctly

* Hoist nullcheck for other objects as well
src/coreclr/jit/codegencommon.cpp
src/coreclr/jit/morph.cpp
src/coreclr/jit/optimizer.cpp