@@ -175,7 +175,6 @@ def operands = @locals.values.compact + @stack.compact
175175
176176 class PutSelf < Insn
177177 def initialize ( ) = super ( Types ::BasicObject )
178- def effects = Effects . new ( Eff ::Empty , Eff ::Control )
179178 end
180179
181180 class GuardType < Insn
@@ -1295,7 +1294,6 @@ def test_fold_addition
12951294 assert_hir "1 + 2" , <<~HIR
12961295 fn <compiled>:
12971296 bb0:
1298- v0:BasicObject = PutSelf
12991297 v9:Fixnum[3] = Const 3
13001298 Return v9
13011299 HIR
@@ -1305,7 +1303,6 @@ def test_fold_subtraction
13051303 assert_hir "5 - 3" , <<~HIR
13061304 fn <compiled>:
13071305 bb0:
1308- v0:BasicObject = PutSelf
13091306 v9:Fixnum[2] = Const 2
13101307 Return v9
13111308 HIR
@@ -1315,7 +1312,6 @@ def test_fold_multiplication
13151312 assert_hir "3 * 4" , <<~HIR
13161313 fn <compiled>:
13171314 bb0:
1318- v0:BasicObject = PutSelf
13191315 v9:Fixnum[12] = Const 12
13201316 Return v9
13211317 HIR
@@ -1325,7 +1321,6 @@ def test_fold_comparison_true
13251321 assert_hir "1 < 2" , <<~HIR
13261322 fn <compiled>:
13271323 bb0:
1328- v0:BasicObject = PutSelf
13291324 v9:TrueClass = Const true
13301325 Return v9
13311326 HIR
@@ -1335,7 +1330,6 @@ def test_fold_comparison_false
13351330 assert_hir "3 < 1" , <<~HIR
13361331 fn <compiled>:
13371332 bb0:
1338- v0:BasicObject = PutSelf
13391333 v9:FalseClass = Const false
13401334 Return v9
13411335 HIR
@@ -1345,7 +1339,6 @@ def test_fold_nested
13451339 assert_hir "2 * 3 + 4" , <<~HIR
13461340 fn <compiled>:
13471341 bb0:
1348- v0:BasicObject = PutSelf
13491342 v16:Fixnum[10] = Const 10
13501343 Return v16
13511344 HIR
@@ -1355,7 +1348,6 @@ def test_fold_chain
13551348 assert_hir "(1 + 2) * (3 + 4)" , <<~HIR
13561349 fn <compiled>:
13571350 bb0:
1358- v0:BasicObject = PutSelf
13591351 v23:Fixnum[21] = Const 21
13601352 Return v23
13611353 HIR
@@ -1365,7 +1357,6 @@ def test_fold_local_arithmetic
13651357 assert_hir "x = 1; x + 2" , <<~HIR
13661358 fn <compiled>:
13671359 bb0:
1368- v0:BasicObject = PutSelf
13691360 v9:Fixnum[3] = Const 3
13701361 Return v9
13711362 HIR
@@ -1379,7 +1370,6 @@ def test_branch_fully_folded
13791370 assert_hir "x = 1; if x > 0 then x + 1 else x - 1 end" , <<~HIR
13801371 fn <compiled>:
13811372 bb0:
1382- v0:BasicObject = PutSelf
13831373 v32:Fixnum[2] = Const 2
13841374 Return v32
13851375 HIR
@@ -1402,7 +1392,6 @@ def test_send_lowered_to_fixnum_add
14021392 assert_hir "1 + 2" , <<~HIR
14031393 fn <compiled>:
14041394 bb0:
1405- v0:BasicObject = PutSelf
14061395 v9:Fixnum[3] = Const 3
14071396 Return v9
14081397 HIR
@@ -1414,7 +1403,6 @@ def test_send_not_lowered_for_strings
14141403 assert_hir '"hello".length' , <<~HIR
14151404 fn <compiled>:
14161405 bb0:
1417- v0:BasicObject = PutSelf
14181406 v1:String = Const "hello"
14191407 v3:BasicObject = Send v1, :length
14201408 Return v3
@@ -1438,7 +1426,6 @@ def test_guards_on_known_fixnums_eliminated
14381426 assert_hir "1 + 2" , <<~HIR
14391427 fn <compiled>:
14401428 bb0:
1441- v0:BasicObject = PutSelf
14421429 v9:Fixnum[3] = Const 3
14431430 Return v9
14441431 HIR
@@ -1450,7 +1437,6 @@ def test_branch_condition_folded
14501437 assert_hir "x = 1; if x > 0 then x + 1 else x - 1 end" , <<~HIR
14511438 fn <compiled>:
14521439 bb0:
1453- v0:BasicObject = PutSelf
14541440 v32:Fixnum[2] = Const 2
14551441 Return v32
14561442 HIR
@@ -1483,7 +1469,6 @@ def test_dead_consts_and_guards_removed
14831469 assert_hir "1 + 2" , <<~HIR
14841470 fn <compiled>:
14851471 bb0:
1486- v0:BasicObject = PutSelf
14871472 v9:Fixnum[3] = Const 3
14881473 Return v9
14891474 HIR
@@ -1494,7 +1479,6 @@ def test_send_not_removed_by_dce
14941479 assert_hir '"hello".length' , <<~HIR
14951480 fn <compiled>:
14961481 bb0:
1497- v0:BasicObject = PutSelf
14981482 v1:String = Const "hello"
14991483 v3:BasicObject = Send v1, :length
15001484 Return v3
@@ -1518,7 +1502,6 @@ def test_branch_blocks_absorbed
15181502 assert_hir "x = 1; if x > 0 then x + 1 else x - 1 end" , <<~HIR
15191503 fn <compiled>:
15201504 bb0:
1521- v0:BasicObject = PutSelf
15221505 v32:Fixnum[2] = Const 2
15231506 Return v32
15241507 HIR
0 commit comments