llvm-mirror/test
Cong Hou 5d51a489ae Replace all weight-based interfaces in MBB with probability-based interfaces, and update all uses of old interfaces.
(This is the second attempt to submit this patch. The first caused two assertion
 failures and was reverted. See https://llvm.org/bugs/show_bug.cgi?id=25687)

The patch in http://reviews.llvm.org/D13745 is broken into four parts:

1. New interfaces without functional changes (http://reviews.llvm.org/D13908).
2. Use new interfaces in SelectionDAG, while in other passes treat probabilities
as weights (http://reviews.llvm.org/D14361).
3. Use new interfaces in all other passes.
4. Remove old interfaces.

This patch is 3+4 above. In this patch, MBB won't provide weight-based
interfaces any more, which are totally replaced by probability-based ones.
The interface addSuccessor() is redesigned so that the default probability is
unknown. We allow unknown probabilities but don't allow using it together
with known probabilities in successor list. That is to say, we either have a
list of successors with all known probabilities, or all unknown
probabilities. In the latter case, we assume each successor has 1/N
probability where N is the number of successors. An assertion checks if the
user is attempting to add a successor with the disallowed mixed use as stated
above. This can help us catch many misuses.

All uses of weight-based interfaces are now updated to use probability-based
ones.


Differential revision: http://reviews.llvm.org/D14973

llvm-svn: 254377
2015-12-01 05:29:22 +00:00
..
Analysis
Assembler AsmParser: Make the code for parsing unnamed aliases more closely resemble that for unnamed globals. 2015-11-25 02:54:07 +00:00
Bindings
Bitcode
BugPoint
CodeGen Replace all weight-based interfaces in MBB with probability-based interfaces, and update all uses of old interfaces. 2015-12-01 05:29:22 +00:00
DebugInfo [Hexagon] Disabling failing safestack test 2015-12-01 04:56:25 +00:00
Examples
ExecutionEngine
Feature Have 'optnone' respect the -fast-isel=false option. 2015-11-30 21:56:16 +00:00
FileCheck
Instrumentation [sanitizer] [dfsan] Unify aarch64 mapping 2015-11-27 12:42:39 +00:00
Integer
JitListener
LibDriver
Linker This reverts commit r254336 and r254344. 2015-11-30 23:54:19 +00:00
LTO
MC [mips][microMIPS] Implement LBUX, LHX, LWX, MAQ_S[A].W.PHL, MAQ_S[A].W.PHR, MFHI, MFLO, MTHI and MTLO instructions 2015-11-30 12:58:39 +00:00
Object
Other
SymbolRewriter
TableGen Add new vector types for 512-, 1024- and 2048-bit vectors 2015-11-24 13:07:35 +00:00
tools [llvm-dwp] Initial partial prototype 2015-12-01 00:48:39 +00:00
Transforms [safestack] Protect byval function arguments. 2015-12-01 00:40:05 +00:00
Unit
Verifier Disallow aliases to available_externally. 2015-11-26 19:22:59 +00:00
YAMLParser
.clang-format
CMakeLists.txt [llvm-dwp] Add missing dependency from llvm tests on the llvm-dwp tool 2015-12-01 00:57:05 +00:00
lit.cfg check-llvm: Introduce the new feature "tls". 2015-12-01 01:14:58 +00:00
lit.site.cfg.in
Makefile
Makefile.tests
TestRunner.sh