1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/CodeGen/SPARC
Evgeniy Brevnov 865492560f [BPI] Improve static heuristics for "cold" paths.
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
2020-12-23 22:47:36 +07:00
..
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 OpaquePtr: Bulk update tests to use typed byval 2020-11-20 14:00:46 -05:00
2011-01-22-SRet.ll OpaquePtr: Bulk update tests to use typed sret 2020-11-20 17:58:26 -05:00
2011-12-03-TailDuplication.ll
2012-05-01-LowerArguments.ll
2013-05-17-CallFrame.ll Emit register names in cfi assembly directives 2020-02-25 14:00:01 -05:00
analyze-branch.ll
atomics.ll
basictest.ll
blockaddr.ll
cast-sret-func.ll OpaquePtr: Bulk update tests to use typed sret 2020-11-20 17:58:26 -05:00
codemodel.ll Revert "Revert "Reland "[Support] make report_fatal_error abort instead of exit""" 2020-02-13 10:16:06 -08:00
constpool.ll
constructor.ll
ctpop.ll
DbgValueOtherTargets.test
disable-fsmuld-fmuls.ll
empty-functions.ll
exception.ll Emit register names in cfi assembly directives 2020-02-25 14:00:01 -05:00
fail-alloca-align.ll Revert "Revert "Reland "[Support] make report_fatal_error abort instead of exit""" 2020-02-13 10:16:06 -08:00
float-constants.ll
float.ll
fp16-promote.ll [Sparc] fp16-promote.ll - Refactor check prefixes + remove unused ones 2020-11-11 18:38:22 +00:00
fp128.ll OpaquePtr: Bulk update tests to use typed sret 2020-11-20 17:58:26 -05:00
fshl.ll [Sparc] Add reduced funnel shift test case for PR47303 2020-09-07 16:17:31 +01:00
func-addr.ll
globals.ll
imm.ll
inline-asm-i-constraint-i1.ll
inlineasm-bad.ll
inlineasm-output-template.ll
inlineasm-v9.ll [Sparc] Remove cast that truncates immediate operands to 32 bits. 2020-10-02 20:14:55 -04:00
inlineasm.ll
leafproc.ll
LeonCASAInstructionUT.ll
LeonDetectRoundChangePassUT.ll
LeonFixAllFDIVSQRTPassUT.ll OpaquePtr: Bulk update tests to use typed byval 2020-11-20 14:00:46 -05:00
LeonInsertNOPLoadPassUT.ll
LeonItinerariesUT.ll OpaquePtr: Bulk update tests to use typed byval 2020-11-20 14:00:46 -05:00
LeonSMACUMACInstructionUT.ll
lit.local.cfg
mature-mc-support.ll
missing-sret.ll OpaquePtr: Bulk update tests to use typed sret 2020-11-20 17:58:26 -05:00
missinglabel.ll [BPI] Improve static heuristics for "cold" paths. 2020-12-23 22:47:36 +07:00
mult-alt-generic-sparc.ll
multiple-div.ll
obj-relocs.ll [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
parts.ll
pic.ll
private.ll
readcycle.ll
reg64.ll
register-clobber.ll
rem.ll
reserved-regs.ll Emit register names in cfi assembly directives 2020-02-25 14:00:01 -05:00
select-mask.ll
sethiandn.ll
setjmp.ll OpaquePtr: Bulk update tests to use typed byval 2020-11-20 14:00:46 -05:00
soft-float.ll
soft-mul-div.ll
spill.ll
spillsize.ll
sret-secondary.ll OpaquePtr: Bulk update tests to use typed sret 2020-11-20 17:58:26 -05:00
stack-align.ll
stack-protector.ll
thread-pointer.ll
tls.ll [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
trap.ll
umulo-128-legalisation-lowering.ll Emit register names in cfi assembly directives 2020-02-25 14:00:01 -05:00
varargs-v8.ll
varargs.ll
vector-call.ll
vector-extract-elt.ll
zerostructcall.ll OpaquePtr: Bulk update tests to use typed byval 2020-11-20 14:00:46 -05:00