summaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorStepan Dyatkovskiy <stpworld@narod.ru>2012-06-23 10:58:58 +0000
committerStepan Dyatkovskiy <stpworld@narod.ru>2012-06-23 10:58:58 +0000
commit47cbc4e0ee6098b7be3c60108000a979f1809949 (patch)
tree8727701668364de2fc385a7a154567b55d578e48 /include/llvm
parentfc76b8691e364f22abb50d5473afe42fbdf6ede2 (diff)
downloadexternal_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.h3
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;
}