Update GetElement and ToScalar to lower IND, LCL_FLD, and LCL_VAR specially (#86400)
authorTanner Gooding <tagoo@outlook.com>
Tue, 23 May 2023 01:53:29 +0000 (18:53 -0700)
committerGitHub <noreply@github.com>
Tue, 23 May 2023 01:53:29 +0000 (18:53 -0700)
commitb066a16f3af015be3f457430aeddfd7f24514c0a
tree4c6b2217ed3b699aca8d1c91ceca83d9a52837fa
parent75250c2c46c49a883bad139bfc1ccb25cc4786aa
Update GetElement and ToScalar to lower IND, LCL_FLD, and LCL_VAR specially (#86400)

* Update GetElement and ToScalar to lower IND, LCL_FLD, and LCL_VAR specially

* Ensure GetElement still correctly handles too large indices

* Only optimize to LCL_FLD for lvDoNotEnregister

* Account for an extreme edge case in offset overflow

* Use simdSize rather than maxSIMDStructBytes
src/coreclr/jit/lower.h
src/coreclr/jit/lowerxarch.cpp