diff options
author | Stepan Dyatkovskiy <stpworld@narod.ru> | 2012-06-23 10:58:58 +0000 |
---|---|---|
committer | Stepan Dyatkovskiy <stpworld@narod.ru> | 2012-06-23 10:58:58 +0000 |
commit | 47cbc4e0ee6098b7be3c60108000a979f1809949 (patch) | |
tree | 8727701668364de2fc385a7a154567b55d578e48 /include/llvm | |
parent | fc76b8691e364f22abb50d5473afe42fbdf6ede2 (diff) | |
download | external_llvm-47cbc4e0ee6098b7be3c60108000a979f1809949.zip external_llvm-47cbc4e0ee6098b7be3c60108000a979f1809949.tar.gz external_llvm-47cbc4e0ee6098b7be3c60108000a979f1809949.tar.bz2 |
Optimized usage of new SwitchInst case values (IntegersSubset type) in Local.cpp, Execution.cpp and BitcodeWriter.cpp.
I got about 1% of compile-time improvement on my machines (Ubuntu 11.10 i386 and Ubuntu 12.04 x64).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159076 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Instructions.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index f94d844..a79e272 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -2705,8 +2705,7 @@ public: } /// Resolves case value for current case. -// IntegersSubsetRef getCaseValueEx() { - IntegersSubset getCaseValueEx() { + IntegersSubsetRef getCaseValueEx() { assert(Index < SI->getNumCases() && "Index out the number of cases."); return *SubsetIt; } |