[CodeGen] Improve likelihood branch weights

Authored by Mordante on Oct 4 2020, 5:21 AM.


[CodeGen] Improve likelihood branch weights

Bruno De Fraine discovered some issues with D85091. The branch weights
generated for logical not and ternary conditional were wrong. The
logical and and logical or differed from the code generated of

Adjusted the generated code for the likelihood to match
__builtin_predict. The patch is based on Bruno's suggestions.

Differential Revision: https://reviews.llvm.org/D88363