Disable folding in genCreateAddrMode under LB-specific circumstances.
authorPat Gavlin <pagavlin@microsoft.com>
Wed, 26 Jul 2017 22:54:16 +0000 (15:54 -0700)
committerPat Gavlin <pagavlin@microsoft.com>
Wed, 26 Jul 2017 22:54:16 +0000 (15:54 -0700)
commitfc949a45ffd01be07dc314f558b39a78a73016fc
treef7384e3b7c693924e7f8562dd2632f9c191ca813
parented71880722e94c348971e89d8953d8059137150e
Disable folding in genCreateAddrMode under LB-specific circumstances.

If we are calling this function during emit with `fold = true`, then disable
folding iff the value to be used as the index is already in a register.
Not doing so can cause entire address modes to be folded away, which
leads to asserts and potential SBCG.

Fixes VSO 468730.
src/jit/codegencommon.cpp