mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
865492560f
Current approach doesn't work well in cases when multiple paths are predicted to be "cold". By "cold" paths I mean those containing "unreachable" instruction, call marked with 'cold' attribute and 'unwind' handler of 'invoke' instruction. The issue is that heuristics are applied one by one until the first match and essentially ignores relative hotness/coldness of other paths. New approach unifies processing of "cold" paths by assigning predefined absolute weight to each block estimated to be "cold". Then we propagate these weights up/down IR similarly to existing approach. And finally set up edge probabilities based on estimated block weights. One important difference is how we propagate weight up. Existing approach propagates the same weight to all blocks that are post-dominated by a block with some "known" weight. This is useless at least because it always gives 50\50 distribution which is assumed by default anyway. Worse, it causes the algorithm to skip further heuristics and can miss setting more accurate probability. New algorithm propagates the weight up only to the blocks that dominates and post-dominated by a block with some "known" weight. In other words, those blocks that are either always executed or not executed together. In addition new approach processes loops in an uniform way as well. Essentially loop exit edges are estimated as "cold" paths relative to back edges and should be considered uniformly with other coldness/hotness markers. Reviewed By: yrouban Differential Revision: https://reviews.llvm.org/D79485 |
||
---|---|---|
.. | ||
32abi.ll | ||
64abi.ll | ||
64atomics.ll | ||
64bit.ll | ||
64cond.ll | ||
64spill.ll | ||
2006-01-22-BitConvertLegalize.ll | ||
2007-05-09-JumpTables.ll | ||
2007-07-05-LiveIntervalAssert.ll | ||
2008-10-10-InlineAsmMemoryOperand.ll | ||
2008-10-10-InlineAsmRegOperand.ll | ||
2009-08-28-PIC.ll | ||
2009-08-28-WeakLinkage.ll | ||
2011-01-11-Call.ll | ||
2011-01-11-CC.ll | ||
2011-01-11-FrameAddr.ll | ||
2011-01-19-DelaySlot.ll | ||
2011-01-21-ByValArgs.ll | ||
2011-01-22-SRet.ll | ||
2011-12-03-TailDuplication.ll | ||
2012-05-01-LowerArguments.ll | ||
2013-05-17-CallFrame.ll | ||
analyze-branch.ll | ||
atomics.ll | ||
basictest.ll | ||
blockaddr.ll | ||
cast-sret-func.ll | ||
codemodel.ll | ||
constpool.ll | ||
constructor.ll | ||
ctpop.ll | ||
DbgValueOtherTargets.test | ||
disable-fsmuld-fmuls.ll | ||
empty-functions.ll | ||
exception.ll | ||
fail-alloca-align.ll | ||
float-constants.ll | ||
float.ll | ||
fp16-promote.ll | ||
fp128.ll | ||
fshl.ll | ||
func-addr.ll | ||
globals.ll | ||
imm.ll | ||
inline-asm-i-constraint-i1.ll | ||
inlineasm-bad.ll | ||
inlineasm-output-template.ll | ||
inlineasm-v9.ll | ||
inlineasm.ll | ||
leafproc.ll | ||
LeonCASAInstructionUT.ll | ||
LeonDetectRoundChangePassUT.ll | ||
LeonFixAllFDIVSQRTPassUT.ll | ||
LeonInsertNOPLoadPassUT.ll | ||
LeonItinerariesUT.ll | ||
LeonSMACUMACInstructionUT.ll | ||
lit.local.cfg | ||
mature-mc-support.ll | ||
missing-sret.ll | ||
missinglabel.ll | ||
mult-alt-generic-sparc.ll | ||
multiple-div.ll | ||
obj-relocs.ll | ||
parts.ll | ||
pic.ll | ||
private.ll | ||
readcycle.ll | ||
reg64.ll | ||
register-clobber.ll | ||
rem.ll | ||
reserved-regs.ll | ||
select-mask.ll | ||
sethiandn.ll | ||
setjmp.ll | ||
soft-float.ll | ||
soft-mul-div.ll | ||
spill.ll | ||
spillsize.ll | ||
sret-secondary.ll | ||
stack-align.ll | ||
stack-protector.ll | ||
thread-pointer.ll | ||
tls.ll | ||
trap.ll | ||
umulo-128-legalisation-lowering.ll | ||
varargs-v8.ll | ||
varargs.ll | ||
vector-call.ll | ||
vector-extract-elt.ll | ||
zerostructcall.ll |