Preserve Unreachable reason inside simplifier
commit780f1b6fdcdffd7cccb0a3c3d2ae4488511c3af3
authorRick Lavoie <rlavoie@fb.com>
Thu, 16 Sep 2021 04:38:16 +0000 (15 21:38 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 16 Sep 2021 04:39:54 +0000 (15 21:39 -0700)
tree5825126ea4befa8d1b8904ebf9a9a88ecd123feb
parent01ff58fad61f021c0358dd44918748bcac02d5fa
Preserve Unreachable reason inside simplifier

Summary:
When the simplifier turns a Jmp to an unreachable block into an
Unreachable itself, copy the Unreachable reason from the dest block
instead of creating a new one. Creating a new one destroys the useful
information in the original Unreachable.

Reviewed By: oulgen

Differential Revision: D30938206

fbshipit-source-id: ec2ea036575991e3ae89d03423c5a6c1e01e2b76
hphp/runtime/vm/jit/simplify.cpp