[PATCH] [AtomicExpand] Set branch weights when new basic blocks are created
Akira Hatanaka
ahatanak at gmail.com
Fri Feb 20 17:50:06 PST 2015
This patch fixes AtomicExpand pass to set branch weights when it creates new basic blocks. The weights are set in a way that optimizes for the case where there are few contentions.
http://reviews.llvm.org/D7804
Files:
include/llvm/Analysis/BranchProbabilityInfo.h
lib/CodeGen/AtomicExpandPass.cpp
test/CodeGen/AArch64/arm64-atomic.ll
test/CodeGen/ARM/atomic-64bit.ll
test/CodeGen/ARM/cmpxchg-idioms.ll
test/CodeGen/X86/atomic128.ll
test/Transforms/AtomicExpand/ARM/atomic-expansion-v7.ll
test/Transforms/AtomicExpand/ARM/atomic-expansion-v8.ll
test/Transforms/AtomicExpand/ARM/cmpxchg-weak.ll
test/Transforms/AtomicExpand/X86/atomic32-weight.ll
test/Transforms/AtomicExpand/X86/lit.local.cfg
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7804.20448.patch
Type: text/x-patch
Size: 24604 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150221/25d03d85/attachment.bin>
More information about the llvm-commits
mailing list