[stack protector] Set edge weights for newly created basic blocks.
authorAkira Hatanaka <ahatanaka@apple.com>
Mon, 1 Dec 2014 04:27:03 +0000 (04:27 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Mon, 1 Dec 2014 04:27:03 +0000 (04:27 +0000)
commitca780b4578b72e847b555577c085741b8105ca26
treeef2e852edba37960c5ed0b5614a66d6508404d30
parent7a551b7c6dd012d67ddf27ab8d87c3e8742c5f11
[stack protector] Set edge weights for newly created basic blocks.

This commit fixes a bug in stack protector pass where edge weights were not set
when new basic blocks were added to lists of successor basic blocks.

Differential Revision: http://reviews.llvm.org/D5766

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222987 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/BranchProbabilityInfo.h
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
lib/CodeGen/StackProtector.cpp
test/CodeGen/X86/stack-protector-weight.ll [new file with mode: 0644]