Unverified Commit a9cc6fc2 authored by Matthias Braun's avatar Matthias Braun Committed by GitHub
Browse files

LoopVectorize: Set branch_weight for conditional branches (#72450)

Consistently add `branch_weights` metadata in any condition branch
created by `LoopVectorize.cpp`:
- Will only add metadata if the original loop-latch branch had metadata
assigned.
- Most checks should rarely trigger so I am using a 127:1 ratio.
- For the middle block we assume an equal distribution of modulo
results.
parent 0ab6b20c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment