[PATCH] Set edge weights in stack protector pass

Akira Hatanaka ahatanak at gmail.com
Mon Oct 13 19:43:54 PDT 2014


The stack protector pass creates new branch instructions and basic blocks but doesn't set branch weights. This patch fixes the bug.

http://reviews.llvm.org/D5766

Files:
  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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5766.14849.patch
Type: text/x-patch
Size: 5630 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141014/638dfec5/attachment.bin>


More information about the llvm-commits mailing list