llvm-project
5950bbf1 - [VPlan] Fix merged replicate region frequency when only one is known. (#221607)

Commit
8 days ago
[VPlan] Fix merged replicate region frequency when only one is known. (#221607) When merging two replicate regions guarded by the same mask, the merged region's entry frequency should be the higher of the two original frequencies, since it now fires whenever either original region did. The existing check only updated the frequency when both were known, leaving the second region's own (possibly much lower) frequency in place whenever the first was unknown. This means we might set a misleadingly low frequency. Conservatively set to unknown instead.
Author
Parents
Loading