llvm-project/llvm/lib
Chandler Carruth 3f5e7b1fb6 [PM] Use a SmallVector instead of std::vector to avoid heap allocations
for small switches, and avoid using a complex loop to set up the
weights.

We know what the baseline weights will be so we can just resize the
vector to contain all that value and clobber the one slot that is
likely. This seems much more direct than the previous code that tested
at every iteration, and started off by zeroing the vector.

llvm-svn: 226995
2015-01-24 10:47:13 +00:00
..
Analysis [PM] Rework how the TargetLibraryInfo pass integrates with the new pass 2015-01-24 02:06:09 +00:00
AsmParser AsmParser: PARSE_MD_FIELD() => ParseMDField(), NFC 2015-01-20 02:42:29 +00:00
Bitcode [Bitcode] Diagnose errors instead of asserting from bad input 2015-01-24 04:15:05 +00:00
CodeGen Fix assertion when C++ EH filters are present in functions using SEH 2015-01-23 23:51:25 +00:00
DebugInfo [cleanup] Re-sort all the #include lines in LLVM using 2015-01-14 11:23:27 +00:00
ExecutionEngine Fix the MSVC build with the new Orc JIT APIs 2015-01-23 22:25:47 +00:00
IR Address more review comments for DIExpression::iterator. 2015-01-23 23:40:47 +00:00
IRReader Remove unused variable. NFC. 2014-11-06 23:16:57 +00:00
LTO [PM] Rework how the TargetLibraryInfo pass integrates with the new pass 2015-01-24 02:06:09 +00:00
LineEditor
Linker [llvm link] Destroy ConstantArrays in LLVMContext if they are not used. 2015-01-20 19:24:59 +00:00
MC Add STB_GNU_UNIQUE to the ELF writer. 2015-01-23 04:44:35 +00:00
Object [Object][ELF] Test unknown type. 2015-01-23 21:58:09 +00:00
Option [cleanup] Re-sort all the #include lines in LLVM using 2015-01-14 11:23:27 +00:00
ProfileData Replace size method call of containers to empty method where appropriate 2015-01-15 11:41:30 +00:00
Support If we see UTF-8 BOM sequence at the beginning of a response file, we shall 2015-01-24 04:23:08 +00:00
TableGen Replace size method call of containers to empty method where appropriate 2015-01-15 11:41:30 +00:00
Target [PM] Rework how the TargetLibraryInfo pass integrates with the new pass 2015-01-24 02:06:09 +00:00
Transforms [PM] Use a SmallVector instead of std::vector to avoid heap allocations 2015-01-24 10:47:13 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile