Performance optimizations:
authorStepan Dyatkovskiy <stpworld@narod.ru>
Fri, 22 Jun 2012 07:35:13 +0000 (07:35 +0000)
committerStepan Dyatkovskiy <stpworld@narod.ru>
Fri, 22 Jun 2012 07:35:13 +0000 (07:35 +0000)
commit7351256208c9ff2cb7b5bdcf4427229abe2a50a8
tree1bba4aa38b59e8c60081aae2f21a6d8b63574616
parentd85934b3e5a96040e199e1b098705eb56cde584a
Performance optimizations:
- SwitchInst: case values stored separately from Operands List. It allows to make faster access to individual case value numbers or ranges.
- Optimized IntItem, added APInt value caching.
- Optimized IntegersSubsetGeneric: added optimizations for cases when subset is single number or when subset consists from single numbers only.

On my machine these optimizations gave about 4-6% of compile-time improvement.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158979 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Instructions.h
include/llvm/Support/IntegersSubset.h
lib/VMCore/Instructions.cpp