Skip to content

Commit 02f0342

Browse files
SC llvm teamSC llvm team
authored andcommitted
Merged main:db2307d2d7f6 into amd-gfx:adc3c62817c1
Local branch amd-gfx adc3c62 Merged main:b2d7312d52f2 into amd-gfx:2e0f986f04bf Remote branch main db2307d [LV] Add tests with dereferenceable assumptions.
2 parents adc3c62 + db2307d commit 02f0342

File tree

4 files changed

+1408
-1
lines changed

4 files changed

+1408
-1
lines changed

clang-tools-extra/docs/clang-tidy/checks/modernize/use-ranges.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ Calls to the following std library algorithms are checked:
104104
``std::unique``,
105105
``std::upper_bound``.
106106

107+
Note: some range algorithms for ``vector<bool>`` require C++23 because it uses
108+
proxy iterators.
109+
107110
Reverse Iteration
108111
-----------------
109112

llvm/include/llvm/Config/llvm-config.h.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
/* Indicate that this is LLVM compiled from the amd-gfx branch. */
1818
#define LLVM_HAVE_BRANCH_AMD_GFX
19-
#define LLVM_MAIN_REVISION 522249
19+
#define LLVM_MAIN_REVISION 522252
2020

2121
/* Define if LLVM_ENABLE_DUMP is enabled */
2222
#cmakedefine LLVM_ENABLE_DUMP

llvm/lib/Transforms/Vectorize/VectorCombine.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,6 +1532,10 @@ bool VectorCombine::foldConcatOfBoolMasks(Instruction &I) {
15321532
if (ShAmtX > 0)
15331533
NewCost += TTI.getArithmeticInstrCost(Instruction::Shl, Ty, CostKind);
15341534

1535+
LLVM_DEBUG(dbgs() << "Found a concatenation of bitcasted bool masks: " << I
1536+
<< "\n OldCost: " << OldCost << " vs NewCost: " << NewCost
1537+
<< "\n");
1538+
15351539
if (NewCost > OldCost)
15361540
return false;
15371541

0 commit comments

Comments
 (0)