Skip to content

Commit 6c93f9e

Browse files
committed
fix ApplyNativeConstraint result equality depth check
RE: llvm/llvm-project#162265
1 parent e686591 commit 6c93f9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xdsl/transforms/convert_pdl_to_pdl_interp/conversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ def extract_non_tree_predicates(
465465
# Add equality constraint if result already has a position
466466
deeper, shallower = (
467467
(constraint_pos, existing)
468-
if constraint_pos.get_operation_depth()
468+
if furthest_pos.get_operation_depth()
469469
> existing.get_operation_depth()
470470
else (existing, constraint_pos)
471471
)

0 commit comments

Comments
 (0)