In the spirit of D130765 . Get rid of cbranches and/or cmov. Usually shorter, but sometime not, becaus eit's hard to prededict when dependency breaking xor will be introduced.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/test/CodeGen/X86/cmov-promotion.ll | ||
---|---|---|
124 ↗ | (On Diff #463214) | Some of these test need duplicating as we need to retain test coverage for the cases where cmov will still be used (i.e. the RHS select != -1) , but also keep these tests for the cmov-less coverage. |
Comment Actions
Add a test case for this spercifically in select_const and modify cmov-promotion so that this optimization doesn't kick in.