[GlobalISel] Combine (X op Y) == X --> Y == 0
This matches patterns of the form ``` (X op Y) == X ``` And transforms them to ``` Y == 0 ``` where appropriate. Example: https://godbolt.org/z/hfW811c7W Differential Revision: https://reviews.llvm.org/D135380
Loading
Please sign in to comment