Refactor GT_IND value-numbering
authorJoseph Tremoulet <jotrem@microsoft.com>
Wed, 18 Jan 2017 14:59:53 +0000 (06:59 -0800)
committerJoseph Tremoulet <jotrem@microsoft.com>
Wed, 18 Jan 2017 15:05:25 +0000 (07:05 -0800)
commitcb1de81e30c7385aa3616a25f99189bc8e275f44
tree13b8f03a4e8e2c42ab1a3bce1fc9d70c51efc2f1
parent325be29a9bc4cf6c364cae0f341e3a53f3768965
Refactor GT_IND value-numbering

Method `fgValueNumberTree` had two pieces of code each attempting to
assume responsibility for `GT_IND` and some block ops.  The one later in
the function wasn't reachable because those ops would always take the
first path.  This change moves the special logic for `GTF_IND_ARR_LEN`,
which was only present in the unreachable code, up to the reachable code,
and removes the unreachable code.

Commit migrated from https://github.com/dotnet/coreclr/commit/f178e60b6c7d41698eeb4f04962307803f78137b
src/coreclr/src/jit/valuenum.cpp