Remove compare instructions from the code generation based on patterns outlined in the Compiler Writer's Guide (Appendix D).
D.1 Comparisons and Comparisons Against Zero
D.2 Negated Comparisons and Negated Comparisons Against Zero
D.3 ComparisonOperators
I noticed that in some test cases we use generic registers (like here [[REG1]] ), and in some other test cases, we use the specific register (like r4,r5), I know this is caused by this patch are created by multiple people. But I think maybe it is worthwhile to use one format for all ? ( I personally prefer the auto generated one, but I am OK with both, as long as they are consistent)