llvm-project
7ae75851 - [X86][APX] Support peephole optimization with CCMP instruction (#129994)

Commit
207 days ago
[X86][APX] Support peephole optimization with CCMP instruction (#129994) This extends `opitimizeCompareInstr` to re-use previous CCMP results if the previous comparison was with an immediates that was 1 bigger or smaller. Example: ``` CCMP x, 13, 2, 5 ... CCMP x, 12, 2, 5 ; can be removed if we change the SETg SETg ... ; x > 12 changed to SETge (x >= 13) & remove the 2nd CCMP ```
Author
Parents
Loading