You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This implements self-comparison optimizations:
- x != x → 0 (always false)
- x == x → 1 (always true)
- x < x → 0 (always false)
- x > x → 0 (always false)
- x <= x → 1 (always true)
- x >= x → 1 (always true)
These register-based patterns appear after register allocation
when different variables are assigned to the same register.
Complements SSA's SCCP constant comparison folding.
0 commit comments