ARM64: Eliminate redundant ldr/str instruction (#39222)
authorKunal Pathak <Kunal.Pathak@microsoft.com>
Tue, 8 Sep 2020 20:36:06 +0000 (13:36 -0700)
committerGitHub <noreply@github.com>
Tue, 8 Sep 2020 20:36:06 +0000 (13:36 -0700)
commit8d29a6c12e04e4ba10b7eb998537badf157c9054
tree95746d4334e4f02b031077e3d99d59e46922efbf
parent9ba9a300a08170c8170ea52981810f41fad68cf0
ARM64: Eliminate redundant ldr/str instruction (#39222)

* IsRedundantLdStr

Added method to check if we can eliminate ld/str instruction

* jit format

* Fixed IsRedundantLdStr and call it from emitIns_R_S() and emitIns_S_R()

* Added check for lastEmitInstr->opSize

* Add some comments
src/coreclr/src/jit/emitarm64.cpp
src/coreclr/src/jit/emitarm64.h