[PATCH] [AtomicExpand] Set branch weights when new basic blocks are created
Akira Hatanaka
ahatanak at gmail.com
Wed Feb 25 19:41:22 PST 2015
Defined a new function which returns weights for both destination BBs.
The rationale for optimizing for the no contention case is that, if there are a lot of contentions, the program won't run fast anyway, however, I don't have data to support my decision.
Do you have any suggestions for benchmark programs that I can run to evaluate the changes I made in my patch?
http://reviews.llvm.org/D7804
Files:
include/llvm/Analysis/BranchProbabilityInfo.h
lib/Analysis/BranchProbabilityInfo.cpp
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.20728.patch
Type: text/x-patch
Size: 25086 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150226/44c92050/attachment.bin>
More information about the llvm-commits
mailing list