Remove redundant zero-initializations for long-lifetime structs. (dotnet/coreclr...
authorEugene Rozenfeld <erozen@microsoft.com>
Fri, 2 Nov 2018 00:19:34 +0000 (17:19 -0700)
committerGitHub <noreply@github.com>
Fri, 2 Nov 2018 00:19:34 +0000 (17:19 -0700)
commitbf560816b10fe43fb25175ce471897a2e6c089f5
treec68202ad4c70affedcec4680fed09992faf507fe
parent7038c48082fb93cc50b0df5fac4b9ad47d449b00
Remove redundant zero-initializations for long-lifetime structs. (dotnet/coreclr#20753)

When compInitMem is true long-lifetime structs (i.e., the ones with lvIsTemp set to false)
are zero-initialized in the prolog: https://github.com/dotnet/coreclr/blob/dotnet/coreclr@c8a63947382b0db428db602238199ca81badbe8e/src/jit/codegencommon.cpp#L4765

Therefore, these structs don't need an explicit zero-initialization in blocks that are not in a loop.

Commit migrated from https://github.com/dotnet/coreclr/commit/dc028d9893915c4c1bd62daf5e12325c15334154
src/coreclr/src/jit/compiler.hpp