49546f9075 (master): ZJIT: Expand anytostring into CondBranch

0 views
Skip to first unread message

Max Bernstein

unread,
10:53 AM (10 hours ago) 10:53 AM
to ruby...@g.ruby-lang.org
Max Bernstein 2026-07-07 18:56:00 +0000 (Tue, 07 Jul 2026)

New Revision: 49546f9075

https://github.com/ruby/ruby/commit/49546f9075

Log:
ZJIT: Expand anytostring into CondBranch

Instead of special-casing it in the optimizer, expand the run-time type
check into HIR and let the optimizer fold it if/when it can. Leave
the `AnyToString` opcode as the fallback.

Modified files:
zjit/src/hir.rs
zjit/src/hir/opt_tests.rs
zjit/src/hir/tests.rs
Reply all
Reply to author
Forward
0 new messages