[PATCH] D35804: [BPI] Detect branches in loops that make themselves not taken

John Brawn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 26 09:15:51 PDT 2017


john.brawn added inline comments.


================
Comment at: test/Analysis/BranchProbabilityInfo/loop.ll:400
+  br label %for.inc
+; CHECK: edge if.then -> for.inc probability is 0x80000000 / 0x80000000 = 100.00% [HOT edge]
+
----------------
davidxl wrote:
> no need to check  unconditional branch.
The other tests in this file check the probabilities of all of the branches, not just the unconditional ones, so I'd rather do the same here for the sake of consistency.


Repository:
  rL LLVM

https://reviews.llvm.org/D35804





More information about the llvm-commits mailing list