[PATCH] D73398: In SCEV's printer pass, print an estimate of the exit count for each exit from profiling information
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 25 01:32:47 PST 2020
nikic added inline comments.
================
Comment at: llvm/test/Analysis/ScalarEvolution/trip-count.ll:143
+ %becond = icmp ne i32 %iv.inc, 20
+ br i1 %becond, label %loop, label %leave, !prof !{!"branch_weights", i32 20, i32 1}
+
----------------
Why are the branch weights here 20/1 and not 19/1 (and relatedly, why do we need to subtract -1 in the exit count calculation)?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73398/new/
https://reviews.llvm.org/D73398
More information about the llvm-commits
mailing list