Skip to content

Commit 547de9f

Browse files
committed
isSubclass: remove @ExplodeLoop for specialization
1 parent df4da01 commit 547de9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/classes/AbstractObjectIsSubclassNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ boolean isSameClass(@SuppressWarnings("unused") Object derived, @SuppressWarning
6868
}
6969

7070
@Specialization(guards = {"derived != cls", "derived == cachedDerived", "cls == cachedCls"}, limit = "getCallSiteInlineCacheMaxDepth()")
71-
@ExplodeLoop
7271
boolean isSubclass(@SuppressWarnings("unused") Object derived, @SuppressWarnings("unused") Object cls,
7372
@Cached("derived") Object cachedDerived,
7473
@Cached("cls") Object cachedCls,
7574
@Cached("create()") AbstractObjectIsSubclassNode isSubclassNode) {
75+
// TODO: Investigate adding @ExplodeLoop when the bases is constant in length (guard)
7676
PTuple bases = getBasesNode.execute(cachedDerived);
7777
if (bases == null || bases.isEmpty()) {
7878
return false;

0 commit comments

Comments
 (0)