[mlir][index] Fold `cmp(x, x)` when `x` isn't a constant (#78812)
Such cases show up in the middle of optimizations passes, e.g., after some rewrites and then CSE. The current folder can fold such cases when the inputs are constant; this patch improves it to fold even if the inputs are non-constant.
Loading
Please sign in to comment