[llvm] [VPlan] Use BlockFrequencyInfo in getPredBlockCostDivisor (PR #158690)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 25 02:31:18 PST 2025
================
@@ -105,7 +105,7 @@ loop.header:
%gep.src = getelementptr inbounds i64, ptr %src, i64 %iv
%l = load i64, ptr %gep.src, align 1
%t = trunc i64 %l to i1
- br i1 %t, label %exit.0, label %loop.latch
+ br i1 %t, label %exit.0, label %loop.latch, !prof !0
----------------
david-arm wrote:
That is weird. I'd expect trunc i64 to i1 to give a probability of 50% given it's essentially asking for the likelihood of loading an odd-numbered value!
https://github.com/llvm/llvm-project/pull/158690
More information about the llvm-commits
mailing list