llvm-project
5e0ef901 - [profcheck][CVP] Adding 'unknown' branch weights for `urem` expansion in CVP (#180637)

Commit
60 days ago
[profcheck][CVP] Adding 'unknown' branch weights for `urem` expansion in CVP (#180637) This change ensures that !prof metadata is preserved and scaled appropriately when the `CorrelatedValuePropagation` (CVP) pass expands an expensive `urem` instruction into a sequence of `icmp`, `select`, and `sub`. In the RP, we add the `unknown`(50/50) branch weights for the new `select` based on the original instruction's profile data. Co-authored-by: Jin Huang <jingold@google.com>
Author
Parents
Loading