Skip to content

Conversation

@kazutakahirata
Copy link
Contributor

No description provided.

@kazutakahirata kazutakahirata requested a review from kuhar March 29, 2025 19:37
@llvmbot llvmbot added mlir:core MLIR Core Infrastructure mlir mlir:scf labels Mar 29, 2025
@llvmbot
Copy link
Member

llvmbot commented Mar 29, 2025

@llvm/pr-subscribers-mlir

@llvm/pr-subscribers-mlir-scf

Author: Kazu Hirata (kazutakahirata)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/133595.diff

2 Files Affected:

  • (modified) mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp (+1-2)
  • (modified) mlir/lib/Tools/lsp-server-support/CompilationDatabase.cpp (+1-2)
diff --git a/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp b/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
index 8e407cc1b348f..91862d2e17d71 100644
--- a/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
+++ b/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
@@ -1542,8 +1542,7 @@ mlir::scf::tileConsumerAndFuseProducersUsingSCF(
 
   if (failed(tilingResult))
     return rewriter.notifyMatchFailure(consumer, "failed to tile consumer");
-  for (auto *tiledOp : tilingResult->tiledOps)
-    tiledAndFusedOps.insert(tiledOp);
+  tiledAndFusedOps.insert_range(tilingResult->tiledOps);
 
   DenseMap<Value, Value> replacements;
   for (auto [origVal, replacement] : llvm::zip_equal(
diff --git a/mlir/lib/Tools/lsp-server-support/CompilationDatabase.cpp b/mlir/lib/Tools/lsp-server-support/CompilationDatabase.cpp
index 3688b6975a630..9ae0674383a1d 100644
--- a/mlir/lib/Tools/lsp-server-support/CompilationDatabase.cpp
+++ b/mlir/lib/Tools/lsp-server-support/CompilationDatabase.cpp
@@ -104,8 +104,7 @@ void CompilationDatabase::loadDatabase(StringRef filename) {
     }
 
     // Track the includes for the file.
-    for (StringRef include : it.first->second.includeDirs)
-      knownIncludes.insert(include);
+    knownIncludes.insert_range(it.first->second.includeDirs);
   }
 
   // Add all of the known includes to the default file info. We don't know any

@llvmbot
Copy link
Member

llvmbot commented Mar 29, 2025

@llvm/pr-subscribers-mlir-core

Author: Kazu Hirata (kazutakahirata)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/133595.diff

2 Files Affected:

  • (modified) mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp (+1-2)
  • (modified) mlir/lib/Tools/lsp-server-support/CompilationDatabase.cpp (+1-2)
diff --git a/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp b/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
index 8e407cc1b348f..91862d2e17d71 100644
--- a/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
+++ b/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
@@ -1542,8 +1542,7 @@ mlir::scf::tileConsumerAndFuseProducersUsingSCF(
 
   if (failed(tilingResult))
     return rewriter.notifyMatchFailure(consumer, "failed to tile consumer");
-  for (auto *tiledOp : tilingResult->tiledOps)
-    tiledAndFusedOps.insert(tiledOp);
+  tiledAndFusedOps.insert_range(tilingResult->tiledOps);
 
   DenseMap<Value, Value> replacements;
   for (auto [origVal, replacement] : llvm::zip_equal(
diff --git a/mlir/lib/Tools/lsp-server-support/CompilationDatabase.cpp b/mlir/lib/Tools/lsp-server-support/CompilationDatabase.cpp
index 3688b6975a630..9ae0674383a1d 100644
--- a/mlir/lib/Tools/lsp-server-support/CompilationDatabase.cpp
+++ b/mlir/lib/Tools/lsp-server-support/CompilationDatabase.cpp
@@ -104,8 +104,7 @@ void CompilationDatabase::loadDatabase(StringRef filename) {
     }
 
     // Track the includes for the file.
-    for (StringRef include : it.first->second.includeDirs)
-      knownIncludes.insert(include);
+    knownIncludes.insert_range(it.first->second.includeDirs);
   }
 
   // Add all of the known includes to the default file info. We don't know any

@kazutakahirata kazutakahirata merged commit d66af9c into llvm:main Mar 29, 2025
15 checks passed
@kazutakahirata kazutakahirata deleted the cleanup_001_set_range_mlir branch March 29, 2025 21:27
@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 29, 2025

LLVM Buildbot has detected a new failure on builder clang-aarch64-sve-vla running on linaro-g3-04 while building mlir at step 7 "ninja check 1".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/17/builds/6864

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
...
llvm-lit: /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/llvm/utils/lit/lit/llvm/config.py:520: note: using ld64.lld: /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/ld64.lld
llvm-lit: /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/llvm/utils/lit/lit/llvm/config.py:520: note: using wasm-ld: /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/wasm-ld
llvm-lit: /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/llvm/utils/lit/lit/discovery.py:276: warning: input '/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/runtimes/runtimes-bins/compiler-rt/test/interception/Unit' contained no tests
llvm-lit: /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/llvm/utils/lit/lit/discovery.py:276: warning: input '/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/Unit' contained no tests
llvm-lit: /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/llvm/utils/lit/lit/llvm/config.py:520: note: using ld.lld: /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/ld.lld
llvm-lit: /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/llvm/utils/lit/lit/llvm/config.py:520: note: using lld-link: /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/lld-link
llvm-lit: /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/llvm/utils/lit/lit/llvm/config.py:520: note: using ld64.lld: /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/ld64.lld
llvm-lit: /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/llvm/utils/lit/lit/llvm/config.py:520: note: using wasm-ld: /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/wasm-ld
-- Testing: 97483 tests, 64 workers --
UNRESOLVED: Flang :: Driver/slp-vectorize.ll (1 of 97483)
******************** TEST 'Flang :: Driver/slp-vectorize.ll' FAILED ********************
Test has no 'RUN:' line
********************
PASS: ScudoStandalone-Unit-GwpAsanTorture :: ./ScudoUnitTest-aarch64-Test/53/71 (2 of 97483)
PASS: ScudoStandalone-Unit :: ./ScudoUnitTest-aarch64-Test/53/71 (3 of 97483)
PASS: libFuzzer-aarch64-default-Linux :: merge-sigusr.test (4 of 97483)
PASS: MemorySanitizer-AARCH64 :: release_origin.c (5 of 97483)
PASS: UBSan-MemorySanitizer-aarch64 :: TestCases/ImplicitConversion/signed-integer-truncation-ignorelist.c (6 of 97483)
PASS: UBSan-AddressSanitizer-aarch64 :: TestCases/ImplicitConversion/unsigned-integer-truncation-ignorelist.c (7 of 97483)
PASS: SanitizerCommon-hwasan-aarch64-Linux :: Linux/signal_segv_handler.cpp (8 of 97483)
PASS: Clang :: OpenMP/target_simd_codegen_registration.cpp (9 of 97483)
PASS: UBSan-AddressSanitizer-aarch64 :: TestCases/ImplicitConversion/signed-integer-truncation-ignorelist.c (10 of 97483)
PASS: Clang :: Headers/arm-neon-header.c (11 of 97483)
PASS: libFuzzer-aarch64-default-Linux :: fuzzer-timeout.test (12 of 97483)
PASS: SanitizerCommon-lsan-aarch64-Linux :: Linux/signal_segv_handler.cpp (13 of 97483)
PASS: libFuzzer-aarch64-default-Linux :: swap-cmp.test (14 of 97483)
PASS: Clang :: OpenMP/target_parallel_for_simd_codegen_registration.cpp (15 of 97483)
PASS: Clang :: OpenMP/target_parallel_for_codegen_registration.cpp (16 of 97483)
PASS: libFuzzer-aarch64-default-Linux :: value-profile-cmp.test (17 of 97483)
PASS: Clang :: OpenMP/target_teams_distribute_codegen_registration.cpp (18 of 97483)
PASS: UBSan-ThreadSanitizer-aarch64 :: TestCases/ImplicitConversion/unsigned-integer-truncation-ignorelist.c (19 of 97483)
PASS: SanitizerCommon-tsan-aarch64-Linux :: Linux/signal_segv_handler.cpp (20 of 97483)
PASS: Clang :: CodeGen/X86/rot-intrinsics.c (21 of 97483)
PASS: UBSan-ThreadSanitizer-aarch64 :: TestCases/ImplicitConversion/signed-integer-truncation-ignorelist.c (22 of 97483)
PASS: Clang :: OpenMP/target_teams_distribute_simd_codegen_registration.cpp (23 of 97483)
PASS: SanitizerCommon-msan-aarch64-Linux :: Linux/signal_segv_handler.cpp (24 of 97483)
PASS: Clang :: CodeGen/X86/avx-builtins.c (25 of 97483)
PASS: LLVM-Unit :: Support/./SupportTests/83/95 (26 of 97483)
PASS: Clang :: Analysis/runtime-regression.c (27 of 97483)
PASS: Clang :: Driver/linux-ld.c (28 of 97483)
PASS: Clang :: CodeGen/X86/sse2-builtins.c (29 of 97483)
PASS: libFuzzer-aarch64-default-Linux :: msan.test (30 of 97483)
PASS: Clang :: Driver/clang_f_opts.c (31 of 97483)
PASS: ThreadSanitizer-aarch64 :: force_background_thread.cpp (32 of 97483)
PASS: Clang :: Preprocessor/predefined-arch-macros.c (33 of 97483)
PASS: ThreadSanitizer-aarch64 :: deadlock_detector_stress_test.cpp (34 of 97483)
PASS: HWAddressSanitizer-aarch64 :: TestCases/Linux/create-thread-stress.cpp (35 of 97483)
PASS: libFuzzer-aarch64-default-Linux :: large.test (36 of 97483)
PASS: ThreadSanitizer-aarch64 :: signal_thread.cpp (37 of 97483)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mlir:core MLIR Core Infrastructure mlir:scf mlir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants