[all-commits] [llvm/llvm-project] bab468: [llvm][ADT] Remove duplicate code in llvm::StringM...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Mar 16 01:01:47 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bab468f2536219ec824a2b6fe959fcaa7abf5685
      https://github.com/llvm/llvm-project/commit/bab468f2536219ec824a2b6fe959fcaa7abf5685
  Author: wangyihan <1135831309 at qq.com>
  Date:   2022-03-16 (Wed, 16 Mar 2022)

  Changed paths:
    M llvm/lib/Support/StringMap.cpp

  Log Message:
  -----------
  [llvm][ADT] Remove duplicate code in llvm::StringMapImpl::RehashTable

Remove duplicate code in llvm::StringMapImpl::RehashTable, near StringMap.cpp:229

```
if (!NewTableArray[NewBucket]) {
  NewTableArray[FullHash & (NewSize - 1)] = Bucket;
  NewHashArray[FullHash & (NewSize - 1)] = FullHash;
  if (I == BucketNo)
    NewBucketNo = NewBucket;
  continue;
}
```

Reviewed By: MaskRay, dexonsmith

Differential Revision: https://reviews.llvm.org/D121726




More information about the All-commits mailing list