llvm-mirror/lib
Manman Ren d492bca8a6 SimplifyCFG: preserve branch-weight metadata when creating a new switch from
a pair of switch/branch where both depend on the value of the same variable and
the default case of the first switch/branch goes to the second switch/branch.

Code clean up and fixed a few issues:
1> handling the case where some cases of the 2nd switch are invalidated
2> correctly calculate the weight for the 2nd switch when it is a conditional eq

Testing case is modified from Alastair's original patch.

llvm-svn: 163635
2012-09-11 17:43:35 +00:00
..
Analysis Release build: guard dump functions with "ifndef NDEBUG" 2012-09-06 19:55:56 +00:00
Archive Mark checkSignature const, and in turn stop casting away const from 2012-09-05 22:09:23 +00:00
AsmParser [ms-inline asm] Enumerate the InlineAsm dialects and rename the nsdialect to 2012-09-05 19:00:49 +00:00
Bitcode Dont cast away const needlessly. Found by gcc48 -Wcast-qual. 2012-09-06 15:42:13 +00:00
CodeGen Dragonegg selfhost exposed additional cases where alloca usage moved outside of lifetime markers. Disabling the pass for now. 2012-09-11 15:40:27 +00:00
DebugInfo Stop casting away const qualifier needlessly. 2012-09-05 22:26:57 +00:00
ExecutionEngine [Object] Extract Elf_Ehdr. Patch by Hemant Kulkarni! 2012-09-10 19:04:02 +00:00
Linker
MC Add MCRI::getNumSubRegIndices() and start checking SubRegIndex ranges. 2012-09-11 16:34:02 +00:00
Object
Support Add support for finding cacheflush on OpenBSD/mips64 platforms. 2012-09-11 01:17:24 +00:00
TableGen Re-work bit/bits value resolving in tblgen 2012-09-06 23:32:48 +00:00
Target Add TRI::getSubRegIndexLaneMask(). 2012-09-11 16:34:08 +00:00
Transforms SimplifyCFG: preserve branch-weight metadata when creating a new switch from 2012-09-11 17:43:35 +00:00
VMCore c bindings: revert LLVMConstInlineAsm to always use the default asm dialect. 2012-09-10 11:52:00 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile