[llvm] [VPlan] Use BlockFrequencyInfo in getPredBlockCostDivisor (PR #158690)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 23 12:28:17 PDT 2025


================
@@ -274,77 +274,19 @@ define void @iv_trunc(i32 %x, ptr %dst, i64 %N) #0 {
 ;
 ; PRED-LABEL: define void @iv_trunc(
 ; PRED-SAME: i32 [[X:%.*]], ptr [[DST:%.*]], i64 [[N:%.*]]) #[[ATTR0]] {
-; PRED-NEXT:  [[ENTRY:.*:]]
----------------
fhahn wrote:

can we add branch probabilities to keep the generated code/original checks for the cost?

https://github.com/llvm/llvm-project/pull/158690


More information about the llvm-commits mailing list