llvm-project
889c289a - [SimplfyCFG] Set `MD_prof` for `select` used for certain conditional simplifications (#154426)

Commit
120 days ago
[SimplfyCFG] Set `MD_prof` for `select` used for certain conditional simplifications (#154426) There’s a pattern where a branch is conditioned on a conjunction or disjunction that ends up being modeled as a `select`​ where the first operand is set to `true`​ or the second to `false`​. If the branch has known branch weights, they can be copied to the `select`​. This is worth doing in case later the `select`​ gets transformed to something else (i.e. if we know the profile, we should propagate it). Issue #147390
Author
Parents
Loading