[PATCH] D15259: Normalize MBB's successors' probabilities in several locations.

Cong Hou via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 5 02:17:03 PST 2015


congh created this revision.
congh added a reviewer: davidxl.
congh added a subscriber: llvm-commits.
Herald added a reviewer: tstellarAMD.
Herald added subscribers: dsanders, arsenm.

This patch adds some missing calls to MBB::normalizeSuccProbs() in several locations where it should be called. Those places are found by checking if the sum of successors' probabilities is approximate one in MachineBlockPlacement pass with some instrumented code (not in this patch).

http://reviews.llvm.org/D15259

Files:
  include/llvm/CodeGen/MachineBasicBlock.h
  lib/CodeGen/EarlyIfConversion.cpp
  lib/CodeGen/IfConversion.cpp
  lib/CodeGen/MachineBasicBlock.cpp
  lib/CodeGen/TailDuplication.cpp
  lib/Target/AArch64/AArch64ConditionalCompares.cpp
  lib/Target/AMDGPU/AMDILCFGStructurizer.cpp
  lib/Target/ARM/ARMISelLowering.cpp
  lib/Target/Hexagon/HexagonEarlyIfConv.cpp
  lib/Target/Mips/MipsLongBranch.cpp
  lib/Target/PowerPC/PPCEarlyReturn.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15259.41988.patch
Type: text/x-patch
Size: 11322 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151205/eea93561/attachment.bin>


More information about the llvm-commits mailing list