Improve the handling of ToScalar and GetElement(0) (#86209)
authorTanner Gooding <tagoo@outlook.com>
Tue, 16 May 2023 18:48:30 +0000 (11:48 -0700)
committerGitHub <noreply@github.com>
Tue, 16 May 2023 18:48:30 +0000 (11:48 -0700)
commit81d039ed9684b75b4f295b1197b8f6445daa6886
treeb2616151a34fca5ebbb2c27d10927fd1d5f65a06
parentf452d9c9064fd8fcc27db756f548aac474e326d8
Improve the handling of ToScalar and GetElement(0) (#86209)

* Improve the handling of ToScalar and GetElement(0)

* Fix build failure

* Ensure ToScalar handling is in EvalHWIntrinsicFunUnary, not FunBinary

* Ensure we don't regress codegen for small types
src/coreclr/jit/codegenxarch.cpp
src/coreclr/jit/decomposelongs.cpp
src/coreclr/jit/gentree.cpp
src/coreclr/jit/hwintrinsiccodegenxarch.cpp
src/coreclr/jit/hwintrinsiclistxarch.h
src/coreclr/jit/hwintrinsicxarch.cpp
src/coreclr/jit/lowerxarch.cpp
src/coreclr/jit/simdashwintrinsic.cpp
src/coreclr/jit/valuenum.cpp