[PATCH] D15519: Replace weights by probabilities in BPI.

Cong Hou via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 14 22:10:09 PST 2015


congh created this revision.
congh added a reviewer: davidxl.
congh added a subscriber: llvm-commits.

This patch removes all weight-related interfaces from BPI and replace them by probability versions. With this patch, we won't use edge weight anymore in either IR or MC passes. Edge probabilitiy is a better representation in terms of CFG update and validation.

http://reviews.llvm.org/D15519

Files:
  include/llvm/Analysis/BranchProbabilityInfo.h
  include/llvm/Support/BranchProbability.h
  lib/Analysis/BranchProbabilityInfo.cpp
  lib/CodeGen/StackProtector.cpp
  lib/Transforms/Scalar/JumpThreading.cpp
  test/Analysis/BranchProbabilityInfo/noreturn.ll
  test/Transforms/JumpThreading/update-edge-weight.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15519.42818.patch
Type: text/x-patch
Size: 26323 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151215/9b7cb264/attachment.bin>


More information about the llvm-commits mailing list