diff options
| author | Max Bernstein <tekknolagi@gmail.com> | 2026-04-08 14:26:16 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-08 11:26:16 -0700 |
| commit | 30e31488257ae7697190cfe8649af3077a8eef5d (patch) | |
| tree | 5c3e9a18d7e2c6c05c3f6d972a08584d2633301f | |
| parent | 6d6f927dd85c78b215f17365e3e282d7b9ab9a19 (diff) | |
ZJIT: Fix land race (#16686)
Just update some HIR tests.
| -rw-r--r-- | zjit/src/hir/opt_tests.rs | 37 | ||||
| -rw-r--r-- | zjit/src/hir/tests.rs | 37 |
2 files changed, 38 insertions, 36 deletions
diff --git a/zjit/src/hir/opt_tests.rs b/zjit/src/hir/opt_tests.rs index 39357c8683..88ab8d3071 100644 --- a/zjit/src/hir/opt_tests.rs +++ b/zjit/src/hir/opt_tests.rs @@ -4872,30 +4872,31 @@ mod hir_opt_tests { bb3(v9:BasicObject, v10:BasicObject): v14:Fixnum[0] = Const Value(0) v18:CPtr = GetEP 0 - v19:CBool = IsBlockParamModified v18 - IfTrue v19, bb4() - v24:CInt64 = LoadField v18, :_env_data_index_specval@0x1001 - v25:CInt64[1] = Const CInt64(1) - v26:CInt64 = IntAnd v24, v25 - v27:CBool = IsBitEqual v26, v25 - IfTrue v27, bb7() - v31:CInt64[0] = Const CInt64(0) - v32:CBool = IsBitEqual v24, v31 - IfTrue v32, bb8() + v19:CUInt64 = LoadField v18, :_ep_flags@0x1001 + v20:CBool = IsBlockParamModified v19 + IfTrue v20, bb4() + v25:CInt64 = LoadField v18, :_env_data_index_specval@0x1002 + v26:CInt64[1] = Const CInt64(1) + v27:CInt64 = IntAnd v25, v26 + v28:CBool = IsBitEqual v27, v26 + IfTrue v28, bb7() + v32:CInt64[0] = Const CInt64(0) + v33:CBool = IsBitEqual v25, v32 + IfTrue v33, bb8() SideExit BlockParamProxyProfileNotCovered bb4(): - v22:BasicObject = LoadField v18, :block@0x1002 - Jump bb6(v22, v22) + v23:BasicObject = LoadField v18, :block@0x1003 + Jump bb6(v23, v23) bb7(): - v29:ObjectSubclass[BlockParamProxy] = Const Value(VALUE(0x1008)) - Jump bb6(v29, v10) + v30:ObjectSubclass[BlockParamProxy] = Const Value(VALUE(0x1008)) + Jump bb6(v30, v10) bb8(): - v34:NilClass = Const Value(nil) - Jump bb6(v34, v10) + v35:NilClass = Const Value(nil) + Jump bb6(v35, v10) bb6(v16:BasicObject, v17:BasicObject): - v38:BasicObject = Send v14, &block, :then, v16 # SendFallbackReason: Complex argument passing + v39:BasicObject = Send v14, &block, :then, v16 # SendFallbackReason: Complex argument passing CheckInterrupts - Return v38 + Return v39 "); } diff --git a/zjit/src/hir/tests.rs b/zjit/src/hir/tests.rs index 90337c1778..3358d75735 100644 --- a/zjit/src/hir/tests.rs +++ b/zjit/src/hir/tests.rs @@ -3587,32 +3587,33 @@ pub(crate) mod hir_build_tests { bb3(v9:BasicObject, v10:BasicObject): v14:Fixnum[0] = Const Value(0) v18:CPtr = GetEP 0 - v19:CBool = IsBlockParamModified v18 - IfTrue v19, bb4() + v19:CUInt64 = LoadField v18, :_ep_flags@0x1001 + v20:CBool = IsBlockParamModified v19 + IfTrue v20, bb4() Jump bb5() bb4(): - v22:BasicObject = LoadField v18, :block@0x1001 - Jump bb6(v22, v22) + v23:BasicObject = LoadField v18, :block@0x1002 + Jump bb6(v23, v23) bb5(): - v24:CInt64 = LoadField v18, :_env_data_index_specval@0x1002 - v25:CInt64[1] = Const CInt64(1) - v26:CInt64 = IntAnd v24, v25 - v27:CBool = IsBitEqual v26, v25 - IfTrue v27, bb7() - v31:CInt64[0] = Const CInt64(0) - v32:CBool = IsBitEqual v24, v31 - IfTrue v32, bb8() + v25:CInt64 = LoadField v18, :_env_data_index_specval@0x1003 + v26:CInt64[1] = Const CInt64(1) + v27:CInt64 = IntAnd v25, v26 + v28:CBool = IsBitEqual v27, v26 + IfTrue v28, bb7() + v32:CInt64[0] = Const CInt64(0) + v33:CBool = IsBitEqual v25, v32 + IfTrue v33, bb8() SideExit BlockParamProxyProfileNotCovered bb7(): - v29:ObjectSubclass[BlockParamProxy] = Const Value(VALUE(0x1008)) - Jump bb6(v29, v10) + v30:ObjectSubclass[BlockParamProxy] = Const Value(VALUE(0x1008)) + Jump bb6(v30, v10) bb8(): - v34:NilClass = Const Value(nil) - Jump bb6(v34, v10) + v35:NilClass = Const Value(nil) + Jump bb6(v35, v10) bb6(v16:BasicObject, v17:BasicObject): - v38:BasicObject = Send v14, &block, :then, v16 # SendFallbackReason: Uncategorized(send) + v39:BasicObject = Send v14, &block, :then, v16 # SendFallbackReason: Uncategorized(send) CheckInterrupts - Return v38 + Return v39 "); } |
