c723eb1aef817d47feec620933ee1ec6005cdd14 |
|
03-Jul-2012 |
Eric Christopher <echristo@apple.com> |
Revert "IntRange:" as it appears to be breaking self hosting. This reverts commit b2833d9dcba88c6f0520cad760619200adc0442c. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159618 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/IntegersSubset.h
|
ebcaa3cd97bf48c4c56dcf9aab5e9a7df85969ed |
|
02-Jul-2012 |
David Blaikie <dblaikie@gmail.com> |
Fix -Wstring-conversion warning. Patch by Matt Beaumont-Gay. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159583 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/IntegersSubset.h
|
7c3a65c7edceb3a013cf49d376c3bc016eb871bf |
|
02-Jul-2012 |
Stepan Dyatkovskiy <stpworld@narod.ru> |
Fixed switch in IntRange::isSingleNumber method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159540 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/IntegersSubset.h
|
dbd0f69e546bbf29e4bebb5618acb321365dd4f5 |
|
02-Jul-2012 |
Stepan Dyatkovskiy <stpworld@narod.ru> |
IntRange, fixed warning in isSingleNumber method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159532 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/IntegersSubset.h
|
b2833d9dcba88c6f0520cad760619200adc0442c |
|
02-Jul-2012 |
Stepan Dyatkovskiy <stpworld@narod.ru> |
IntRange: - Changed isSingleNumber method behaviour. Now this flag is calculated on demand. IntegersSubsetMapping - Optimized diff operation. - Replaced type of Items field from std::list with std::map. - Added new methods: bool isOverlapped(self &RHS) void add(self& RHS, SuccessorClass *S) void detachCase(self& NewMapping, SuccessorClass *Succ) void removeCase(SuccessorClass *Succ) SuccessorClass *findSuccessor(const IntTy& Val) const IntTy* getCaseSingleNumber(SuccessorClass *Succ) IntegersSubsetTest - DiffTest: Added checks for successors. SimplifyCFG Updated SwitchInst usage (now it is case-ragnes compatible) for - SimplifyEqualityComparisonWithOnlyPredecessor - FoldValueComparisonIntoPredecessors git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159527 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/IntegersSubset.h
|
653bbb494bd4c9737c6efa76b6176f6ede89a391 |
|
24-Jun-2012 |
NAKAMURA Takumi <geek4civic@gmail.com> |
llvm/Support/IntegersSubset.h: Add a copy constructor on IntegersSubset to appease msvc. msvc mis-infers ParentTy(RHS) to (const RangesCollectionTy &). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159101 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/IntegersSubset.h
|
19dc8e374a8fd86878ee8f34ff07a8c4645b075f |
|
24-Jun-2012 |
NAKAMURA Takumi <geek4civic@gmail.com> |
llvm/Support/IntegersSubset.h: Fix whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159100 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/IntegersSubset.h
|
43c3a4a7e76920c5646e473b72620acc7eb4ca5a |
|
22-Jun-2012 |
Stepan Dyatkovskiy <stpworld@narod.ru> |
Fixed r158979. Original message: 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158997 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/IntegersSubset.h
|
37eeb058a30200101836d82098542d3d2fc4f3d5 |
|
22-Jun-2012 |
Duncan Sands <baldrick@free.fr> |
Revert commit 158979 (dyatkovskiy) since it is causing several buildbots to fail. Original commit message: 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@158986 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/IntegersSubset.h
|
7351256208c9ff2cb7b5bdcf4427229abe2a50a8 |
|
22-Jun-2012 |
Stepan Dyatkovskiy <stpworld@narod.ru> |
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
/external/llvm/include/llvm/Support/IntegersSubset.h
|
20cb4919cd01967b11b0b468fd43167b263ed028 |
|
05-Jun-2012 |
Stepan Dyatkovskiy <stpworld@narod.ru> |
IntegersSubsetMapping: Changed type of Items collection: from std::vector to std::list. Also some small fixes made in IntegersSubset.h, IntegersSubsetMapping.h and IntegersSubsetTest.cpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157987 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/IntegersSubset.h
|
13776d3fc80e3d5936ecba3a3dc0b20299cf0b6e |
|
03-Jun-2012 |
NAKAMURA Takumi <geek4civic@gmail.com> |
IntRange: Restore the copy constuctor explicitly to appase buildbot. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157901 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/IntegersSubset.h
|
31219d2cec17dca632b6d047a15e86dc92b76e18 |
|
02-Jun-2012 |
Stepan Dyatkovskiy <stpworld@narod.ru> |
Added unittests for IntegersSubset and IntegersSubsetMapping. - Fixed IntegersSubsetGeneric copy/assignment behaviour. - Fixed IntegersSubsetGeneric::getSize/getSingleValue methods. - Fixed IntegersSubsetGeneric::verify method. Also IntegersSubset.h and IntegersSubsetMapping.h headers was fixed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157887 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/IntegersSubset.h
|
d9b0b025612992a0b724eeca8bdf10b1d7a5c355 |
|
02-Jun-2012 |
Benjamin Kramer <benny.kra@googlemail.com> |
Fix typos found by http://github.com/lyda/misspell-check git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157885 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/IntegersSubset.h
|
43eb31bfae470b33bab9a6764b98b5e8a0beeda5 |
|
02-Jun-2012 |
Stepan Dyatkovskiy <stpworld@narod.ru> |
PR1255: case ranges. IntRange converted from struct to class. So main change everywhere is replacement of ".Low/High" with ".getLow/getHigh()" git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157884 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/IntegersSubset.h
|
4524dd7518288f3d49bcaf31cff27cb82462c79c |
|
02-Jun-2012 |
Stepan Dyatkovskiy <stpworld@narod.ru> |
Additional change for 157881. Forget to fix another IntegerSubset constructor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157882 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/IntegersSubset.h
|
e2c53188ea8b01ca3d91b91c42faa5aa07ba4b70 |
|
02-Jun-2012 |
Stepan Dyatkovskiy <stpworld@narod.ru> |
Small fix due to buildbot failures on mingw32. Fixed call of parent constructor for case when parent is template. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157881 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/IntegersSubset.h
|
4319a552ac98137d511341905711293d541f15e7 |
|
02-Jun-2012 |
Stepan Dyatkovskiy <stpworld@narod.ru> |
PR1255: case ranges. IntegersSubsetGeneric, IntegersSubsetMapping: added IntTy template parameter, that allows use either APInt or IntItem. This change allows to write unittest for these classes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157880 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/IntegersSubset.h
|
6bb5c0074dc4cede2ad8efd420ec91288f91b012 |
|
01-Jun-2012 |
Stepan Dyatkovskiy <stpworld@narod.ru> |
PR1255: case ranges. IntegersSubset devided into IntegersSubsetGeneric and into IntegersSubset itself. The first has no references to ConstantInt and works with IntItem only. IntegersSubsetMapping also made generic. Here added second template parameter "IntegersSubsetTy" that allows to use on of two IntegersSubset types described below. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157815 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/IntegersSubset.h
|
b778179b86e930a07ce06a9018396ae434540360 |
|
01-Jun-2012 |
Benjamin Kramer <benny.kra@googlemail.com> |
Remove noisy semicolons. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157814 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/IntegersSubset.h
|
f8d14c4ca3874890cfd8867d9557efca9511c98f |
|
01-Jun-2012 |
Stepan Dyatkovskiy <stpworld@narod.ru> |
PR1255: case ranges. IntItem cleanup. IntItemBase, IntItemConstantIntImp and IntItem merged into IntItem. All arithmetic operators was propogated from APInt. Also added comparison operators <,>,<=,>=. Currently you will find set of macros that propogates operators from APInt to IntItem in the beginning of IntegerSubset. Note that THESE MACROS WILL REMOVED after all passes will case-ranges compatible. Also note that these macros much smaller pain that something like this: if (V->getValue().ugt(AnotherV->getValue()) { ... } These changes made IntItem full featured integer object. It allows to make IntegerSubset class generic (move out all ConstantInt references inside and add unit-tests) in next commits. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157810 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/IntegersSubset.h
|
0aa32d5d0ff6cd65b6cff957858a79e2d2a614bd |
|
29-May-2012 |
Stepan Dyatkovskiy <stpworld@narod.ru> |
ConstantRangesSet renamed to IntegersSubset. CRSBuilder renamed to IntegersSubsetMapping. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157612 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/IntegersSubset.h
|