@@ -5205,8 +5205,6 @@ mod hir_opt_tests {
52055205 v14:HeapBasicObject = RefineType v6, HeapBasicObject
52065206 v17:Fixnum[2] = Const Value(2)
52075207 PatchPoint SingleRactorMode
5208- v36:CShape = LoadField v14, :_shape_id@0x1000
5209- v37:CShape[0x1003] = GuardBitEquals v36, CShape(0x1003)
52105208 StoreField v14, :@bar@0x1004, v17
52115209 WriteBarrier v14, v17
52125210 v40:CShape[0x1005] = Const CShape(0x1005)
@@ -8761,7 +8759,7 @@ mod hir_opt_tests {
87618759 end
87628760 test([])
87638761 " ) ;
8764- assert_snapshot ! ( hir_string( "test" ) , @"
8762+ assert_snapshot ! ( hir_string( "test" ) , @r "
87658763 fn test@<compiled>:3:
87668764 bb1():
87678765 EntryPoint interpreter
@@ -8782,8 +8780,7 @@ mod hir_opt_tests {
87828780 v33:ArrayExact = GuardType v10, ArrayExact
87838781 v34:CUInt64 = LoadField v33, :_rbasic_flags@0x1040
87848782 v35:CUInt64 = GuardNoBitsSet v34, RUBY_FL_FREEZE=CUInt64(2048)
8785- v36:CUInt64 = LoadField v33, :_rbasic_flags@0x1040
8786- v37:CUInt64 = GuardNoBitsSet v36, RUBY_ELTS_SHARED=CUInt64(4096)
8783+ v37:CUInt64 = GuardNoBitsSet v34, RUBY_ELTS_SHARED=CUInt64(4096)
87878784 v38:CInt64[1] = UnboxFixnum v17
87888785 v39:CInt64 = ArrayLength v33
87898786 v40:CInt64[1] = GuardLess v38, v39
@@ -8805,7 +8802,7 @@ mod hir_opt_tests {
88058802 end
88068803 test([], 0, 1)
88078804 " ) ;
8808- assert_snapshot ! ( hir_string( "test" ) , @"
8805+ assert_snapshot ! ( hir_string( "test" ) , @r "
88098806 fn test@<compiled>:3:
88108807 bb1():
88118808 EntryPoint interpreter
@@ -8829,8 +8826,7 @@ mod hir_opt_tests {
88298826 v38:Fixnum = GuardType v15, Fixnum
88308827 v39:CUInt64 = LoadField v37, :_rbasic_flags@0x1040
88318828 v40:CUInt64 = GuardNoBitsSet v39, RUBY_FL_FREEZE=CUInt64(2048)
8832- v41:CUInt64 = LoadField v37, :_rbasic_flags@0x1040
8833- v42:CUInt64 = GuardNoBitsSet v41, RUBY_ELTS_SHARED=CUInt64(4096)
8829+ v42:CUInt64 = GuardNoBitsSet v39, RUBY_ELTS_SHARED=CUInt64(4096)
88348830 v43:CInt64 = UnboxFixnum v38
88358831 v44:CInt64 = ArrayLength v37
88368832 v45:CInt64 = GuardLess v43, v44
@@ -13515,17 +13511,13 @@ mod hir_opt_tests {
1351513511 v14:HeapBasicObject = RefineType v6, HeapBasicObject
1351613512 v17:Fixnum[2] = Const Value(2)
1351713513 PatchPoint SingleRactorMode
13518- v50:CShape = LoadField v14, :_shape_id@0x1000
13519- v51:CShape[0x1003] = GuardBitEquals v50, CShape(0x1003)
1352013514 StoreField v14, :@b@0x1004, v17
1352113515 WriteBarrier v14, v17
1352213516 v54:CShape[0x1005] = Const CShape(0x1005)
1352313517 StoreField v14, :_shape_id@0x1000, v54
1352413518 v21:HeapBasicObject = RefineType v14, HeapBasicObject
1352513519 v24:Fixnum[3] = Const Value(3)
1352613520 PatchPoint SingleRactorMode
13527- v57:CShape = LoadField v21, :_shape_id@0x1000
13528- v58:CShape[0x1005] = GuardBitEquals v57, CShape(0x1005)
1352913521 StoreField v21, :@c@0x1006, v24
1353013522 WriteBarrier v21, v24
1353113523 v61:CShape[0x1007] = Const CShape(0x1007)
@@ -13735,9 +13727,6 @@ mod hir_opt_tests {
1373513727 v20:HeapBasicObject = RefineType v8, HeapBasicObject
1373613728 PatchPoint NoEPEscape(initialize)
1373713729 PatchPoint SingleRactorMode
13738- v43:CShape = LoadField v20, :_shape_id@0x1000
13739- v44:CShape[0x1003] = GuardBitEquals v43, CShape(0x1003)
13740- StoreField v20, :@a@0x1002, v13
1374113730 WriteBarrier v20, v13
1374213731 CheckInterrupts
1374313732 Return v13
0 commit comments