@@ -379,14 +379,13 @@ protected abstract static class BaseLessThanNode extends PythonBinaryBuiltinNode
379
379
static boolean isLessThan (VirtualFrame frame , PBaseSet self , PBaseSet other ,
380
380
@ CachedLibrary (limit = "2" ) HashingStorageLibrary hlib ,
381
381
@ Cached ConditionProfile hasFrameProfile ,
382
- @ Cached ConditionProfile sizeProfile ,
383
- @ Cached BaseLessEqualNode lessEqualNode ) {
382
+ @ Cached ConditionProfile sizeProfile ) {
384
383
final int len1 = hlib .lengthWithFrame (self .getDictStorage (), hasFrameProfile , frame );
385
384
final int len2 = hlib .lengthWithFrame (other .getDictStorage (), hasFrameProfile , frame );
386
385
if (sizeProfile .profile (len1 >= len2 )) {
387
386
return false ;
388
387
}
389
- return ( Boolean ) lessEqualNode . execute (frame , self , other );
388
+ return BaseLessEqualNode . doLE (frame , self , other , hasFrameProfile , hlib );
390
389
}
391
390
392
391
@ Specialization
@@ -409,14 +408,13 @@ protected abstract static class BaseGreaterThanNode extends PythonBinaryBuiltinN
409
408
static boolean isGreaterThan (VirtualFrame frame , PBaseSet self , PBaseSet other ,
410
409
@ CachedLibrary (limit = "2" ) HashingStorageLibrary hlib ,
411
410
@ Cached ConditionProfile hasFrameProfile ,
412
- @ Cached ConditionProfile sizeProfile ,
413
- @ Cached BaseGreaterEqualNode greaterEqualNode ) {
411
+ @ Cached ConditionProfile sizeProfile ) {
414
412
final int len1 = hlib .lengthWithFrame (self .getDictStorage (), hasFrameProfile , frame );
415
413
final int len2 = hlib .lengthWithFrame (other .getDictStorage (), hasFrameProfile , frame );
416
414
if (sizeProfile .profile (len1 <= len2 )) {
417
415
return false ;
418
416
}
419
- return ( Boolean ) greaterEqualNode . execute (frame , self , other );
417
+ return BaseGreaterEqualNode . doGE (frame , self , other , hasFrameProfile , hlib );
420
418
}
421
419
422
420
@ Specialization
0 commit comments