llvm-project/llvm/lib/Transforms
Roman Lebedev b5822026dd
[SimplifyCFG] 'Fold branch to common dest': don't overestimate the cost
`FoldBranchToCommonDest()` has a certain budget (`-bonus-inst-threshold=`)
for bonus instruction duplication. And currently it calculates the cost
as-if it will actually duplicate into each predecessor.

But ignoring the budget, it won't always duplicate into each predecessor,
there are some correctness and profitability checks.
So when calculating the cost, we should first check into which blocks
will we *actually* duplicate, and only then use that block count
to do budgeting.
2021-03-23 18:30:26 +03:00
..
AggressiveInstCombine [Transforms] Use llvm::append_range (NFC) 2021-01-20 21:35:54 -08:00
CFGuard llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
Coroutines Reapply "[DebugInfo] Handle multiple variable location operands in IR" 2021-03-17 16:45:25 +00:00
Hello
IPO Revert "[Passes] Add relative lookup table converter pass" 2021-03-23 00:43:16 +00:00
InstCombine [llvm-opt] Bug fix within combining FP vectors 2021-03-23 12:13:41 +00:00
Instrumentation [SanitizerCoverage] Use External on Windows 2021-03-22 23:05:36 -07:00
ObjCARC Move ObjCARCUtil.h back to llvm/Analysis 2021-03-08 16:35:24 -08:00
Scalar [AnnotationRemarks] Use subprogram location for summary remarks. 2021-03-23 12:05:41 +00:00
Utils [SimplifyCFG] 'Fold branch to common dest': don't overestimate the cost 2021-03-23 18:30:26 +03:00
Vectorize [SLP] allow matching integer min/max intrinsics as reduction ops 2021-03-23 08:56:44 -04:00
CMakeLists.txt [NewPM][HelloWorld] Move HelloWorld to Utils 2021-02-03 12:59:40 -08:00