Avatar
omochimetaru 6/3/2019 8:54 AM
inline(never)つけたら、testFloor側は同じになった [omochi@omochi-iMac-PC43 fp]$ diff testFloor1.sil testFloor2.sil 1,2c1,2 < // testFloor1() < sil hidden @$s1a10testFloor1yyF : $@convention(thin) () -> () { --- > // testFloor2() > sil hidden @$s1a10testFloor2yyF : $@convention(thin) () -> () { 52,53c52,53 < // function_ref f1(array:) < %40 = function_ref @$s1a2f15arrayySaySdGz_tF : $@convention(thin) (@inout Array<Double>) -> () // user: %41 --- > // function_ref specialized f2<A>(array:) > %40 = function_ref @$s1a2f25arrayySayxGz_tSFRzlFSd_Tg5 : $@convention(thin) (@inout Array<Double>) -> () // user: %41 105c105 < } // end sil function '$s1a10testFloor1yyF' \ No newline at end of file --- > } // end sil function '$s1a10testFloor2yyF' \ No newline at end of file
8:56 AM
f1は80行、とspecialized f2は200行でだいぶ違うな