diff options
| author | Max Bernstein <rubybugs@bernsteinbear.com> | 2026-01-21 14:23:29 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-21 19:23:29 +0000 |
| commit | 0cc4e212c47f15f9f5384fb9871a2da8a6276ed4 (patch) | |
| tree | d0513556218558ed9789a771427f1fe985d5eba0 /test/prism/errors/non_assoc_equality.txt | |
| parent | cfa97af7e1426c76b769495ef4b1689be3b0a685 (diff) | |
Do a sort of "partial static single information (SSI)" form that learns
types of operands from branch instructions. A branchif, for example,
tells us that in the truthy path, we know the operand is not nil, and
not false. Similarly, in the falsy path, we know the operand is either
nil or false.
Add a RefineType instruction to attach this information.
This PR does this in SSA construction because it's pretty
straightforward, but we can also do a more aggressive version of this
that can learn information about e.g. int ranges from other checks later
in the optimization pipeline.
Diffstat (limited to 'test/prism/errors/non_assoc_equality.txt')
0 files changed, 0 insertions, 0 deletions
