Added new tree walker helper optHasCSEdefWithSideeffect to determine up front if...
authorBrian Sullivan <briansul@microsoft.com>
Fri, 16 Feb 2018 23:20:07 +0000 (15:20 -0800)
committerBrian Sullivan <briansul@microsoft.com>
Fri, 16 Feb 2018 23:20:07 +0000 (15:20 -0800)
commit95b2fc811382b64a580f103fdbc3ea6b56d9d5eb
tree2cdca7403ba526b58004f3f3aa92330827cc0299
parent93c2cd74a6611ff0c302096654f260c4822fde56
Added new tree walker helper optHasCSEdefWithSideeffect to determine up front if we have
a nested CSE def with side effects.  The refs counts will be wrong when we start unmarking
some CSE uses and then later abandon the replacement operation.
So now we decide upfront if we have a CSE def with side effects before we call optUnmarkCSEs.
src/jit/compiler.h
src/jit/optcse.cpp