ARM64: Fix Liveness update for Division By Zero
authorKyungwoo Lee <kyulee@microsoft.com>
Wed, 25 May 2016 15:38:59 +0000 (08:38 -0700)
committerKyungwoo Lee <kyulee@microsoft.com>
Fri, 27 May 2016 04:18:48 +0000 (21:18 -0700)
commit38880b77b12bd7a1edb302ac444c207e7445a739
treed530ec3e359ec14908b908540c54272496238e31
parent185a23ebc2b54873d00a91e5ef069e6571c8e356
ARM64: Fix Liveness update for Division By Zero

We've missed updating liveness when converting division by zero to a
throw. This fixes an assertion failure in `assert(!varDsc->lvIsRegCandidate());` in
codegenarm64.cpp/L1903.
genConsumeOperands() is factored out of genCodeForBinary(). The call sites
appropriately invoke genConsumeOperands() to update liveness.
src/jit/codegenarm64.cpp
src/jit/codegenxarch.cpp
tests/arm64/Tests.lst