Skip to content

Conversation

@vzakhari
Copy link
Contributor

My local build with the shared libraries is broken.
I suppose this was introduced by #120374.

flang/include/flang/Evaluate/constant.h ends up being included
by MapInfoFinalization.cpp via flang/Lower/DirectivesCommon.h.
The undefined references are related to ConstantBase classes.

My local build with the shared libraries is broken.
I suppose this was introduced by llvm#120374.

`flang/include/flang/Evaluate/constant.h` ends up being included
by `MapInfoFinalization.cpp` via `flang/Lower/DirectivesCommon.h`.
The undefined references are related to `ConstantBase` classes.
@vzakhari vzakhari requested a review from ergawy December 31, 2024 04:54
@llvmbot llvmbot added flang Flang issues not falling into any other category flang:fir-hlfir labels Dec 31, 2024
@llvmbot
Copy link
Member

llvmbot commented Dec 31, 2024

@llvm/pr-subscribers-flang-fir-hlfir

Author: Slava Zakharin (vzakhari)

Changes

My local build with the shared libraries is broken.
I suppose this was introduced by #120374.

flang/include/flang/Evaluate/constant.h ends up being included
by MapInfoFinalization.cpp via flang/Lower/DirectivesCommon.h.
The undefined references are related to ConstantBase classes.


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

1 Files Affected:

  • (modified) flang/lib/Optimizer/OpenMP/CMakeLists.txt (+1)
diff --git a/flang/lib/Optimizer/OpenMP/CMakeLists.txt b/flang/lib/Optimizer/OpenMP/CMakeLists.txt
index 4f23b2b970fa44..026889cca238a0 100644
--- a/flang/lib/Optimizer/OpenMP/CMakeLists.txt
+++ b/flang/lib/Optimizer/OpenMP/CMakeLists.txt
@@ -22,6 +22,7 @@ add_flang_library(FlangOpenMPTransforms
   FIRDialectSupport
   FIRSupport
   FortranCommon
+  FortranEvaluate
   MLIRFuncDialect
   MLIROpenMPDialect
   HLFIRDialect

@vzakhari
Copy link
Contributor Author

vzakhari commented Jan 4, 2025

I am going to merge this, because at least two people are affected now, and the change is trivial.

@vzakhari vzakhari merged commit 7c86ab8 into llvm:main Jan 4, 2025
11 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Jan 4, 2025

LLVM Buildbot has detected a new failure on builder clang-aarch64-sve2-vla running on linaro-g4-01 while building flang at step 7 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'MLIR :: Integration/Dialect/Vector/CPU/ArmSVE/sve.mlir' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-opt /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/mlir/test/Integration/Dialect/Vector/CPU/ArmSVE/sve.mlir -lower-affine -convert-vector-to-scf -convert-scf-to-cf -convert-vector-to-llvm="enable-arm-sve" -finalize-memref-to-llvm -convert-func-to-llvm -convert-arith-to-llvm -convert-cf-to-llvm -canonicalize |  mlir-cpu-runner -e=entry -entry-point-result=void --march=aarch64 --mattr="+sve" -shared-libs=/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/./lib/libmlir_c_runner_utils.so |  /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/mlir/test/Integration/Dialect/Vector/CPU/ArmSVE/sve.mlir
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-opt /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/mlir/test/Integration/Dialect/Vector/CPU/ArmSVE/sve.mlir -lower-affine -convert-vector-to-scf -convert-scf-to-cf -convert-vector-to-llvm=enable-arm-sve -finalize-memref-to-llvm -convert-func-to-llvm -convert-arith-to-llvm -convert-cf-to-llvm -canonicalize
# .---command stderr------------
# | /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/mlir/test/Integration/Dialect/Vector/CPU/ArmSVE/sve.mlir:53:12: error: null operand found
# |     %agb = arith.cmpi sge, %0, %1 : vector<[2]xi64>
# |            ^
# | /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/mlir/test/Integration/Dialect/Vector/CPU/ArmSVE/sve.mlir:53:12: note: see current operation: %17 = "arith.cmpi"(%13, <<NULL VALUE>>) <{predicate = 5 : i64}> : (vector<[2]xi64>, <<NULL TYPE>>) -> vector<[2]xi1>
# `-----------------------------
# error: command failed with exit status: 1
# executed command: mlir-cpu-runner -e=entry -entry-point-result=void --march=aarch64 --mattr=+sve -shared-libs=/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/./lib/libmlir_c_runner_utils.so
# .---command stderr------------
# | Error: entry point not found
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/mlir/test/Integration/Dialect/Vector/CPU/ArmSVE/sve.mlir
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/mlir/test/Integration/Dialect/Vector/CPU/ArmSVE/sve.mlir
# `-----------------------------
# error: command failed with exit status: 2

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Jan 4, 2025

LLVM Buildbot has detected a new failure on builder clang-aarch64-sve2-vla-2stage running on linaro-g4-02 while building flang at step 12 "ninja check 2".

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

Here is the relevant piece of the build log for the reference
Step 12 (ninja check 2) failure: stage 2 checked (failure)
******************** TEST 'MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_reductions.mlir' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 21
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/mlir-opt /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_reductions.mlir --sparsifier="enable-runtime-library=true" | /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/mlir-cpu-runner -e main -entry-point-result=void -shared-libs=/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/lib/libmlir_c_runner_utils.so,/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/lib/libmlir_runner_utils.so | /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_reductions.mlir
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/mlir-opt /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_reductions.mlir --sparsifier=enable-runtime-library=true
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/mlir-cpu-runner -e main -entry-point-result=void -shared-libs=/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/lib/libmlir_c_runner_utils.so,/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/lib/libmlir_runner_utils.so
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_reductions.mlir
# RUN: at line 25
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/mlir-opt /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_reductions.mlir --sparsifier="enable-runtime-library=false" | /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/mlir-cpu-runner -e main -entry-point-result=void -shared-libs=/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/lib/libmlir_c_runner_utils.so,/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/lib/libmlir_runner_utils.so | /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_reductions.mlir
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/mlir-opt /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_reductions.mlir --sparsifier=enable-runtime-library=false
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/mlir-cpu-runner -e main -entry-point-result=void -shared-libs=/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/lib/libmlir_c_runner_utils.so,/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/lib/libmlir_runner_utils.so
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_reductions.mlir
# RUN: at line 29
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/mlir-opt /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_reductions.mlir --sparsifier="enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true" | /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/mlir-cpu-runner -e main -entry-point-result=void -shared-libs=/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/lib/libmlir_c_runner_utils.so,/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/lib/libmlir_runner_utils.so | /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_reductions.mlir
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/mlir-opt /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_reductions.mlir '--sparsifier=enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true'
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/mlir-cpu-runner -e main -entry-point-result=void -shared-libs=/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/lib/libmlir_c_runner_utils.so,/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/lib/libmlir_runner_utils.so
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_reductions.mlir
# RUN: at line 32
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/mlir-opt /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_reductions.mlir --sparsifier="enable-arm-sve=true enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true" | mlir-cpu-runner --march=aarch64 --mattr="+sve" -e main -entry-point-result=void -shared-libs=/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/./lib/libmlir_runner_utils.so,/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/./lib/libmlir_c_runner_utils.so | /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_reductions.mlir
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/mlir-opt /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_reductions.mlir '--sparsifier=enable-arm-sve=true enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true'
# .---command stderr------------
# | /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_reductions.mlir:76:10: error: null operand found
# |     %0 = linalg.generic #trait_reduction
# |          ^
# | /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_reductions.mlir:76:10: note: see current operation: %38 = "arith.select"(<<NULL VALUE>>, %37, %25) : (<<NULL TYPE>>, vector<[2]xi32>, vector<[2]xi32>) -> vector<[2]xi32>
# `-----------------------------
# error: command failed with exit status: 1
# executed command: mlir-cpu-runner --march=aarch64 --mattr=+sve -e main -entry-point-result=void -shared-libs=/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/./lib/libmlir_runner_utils.so,/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/./lib/libmlir_c_runner_utils.so
# .---command stderr------------
# | Error: entry point not found
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_reductions.mlir
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_reductions.mlir
# `-----------------------------
# error: command failed with exit status: 2

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Jan 4, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 22
/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/mlir-opt /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir --sparsifier="enable-runtime-library=false" | /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/mlir-cpu-runner -e main -entry-point-result=void -shared-libs=/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/lib/libmlir_c_runner_utils.so,/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/lib/libmlir_runner_utils.so | /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/mlir-opt /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir --sparsifier=enable-runtime-library=false
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/mlir-cpu-runner -e main -entry-point-result=void -shared-libs=/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/lib/libmlir_c_runner_utils.so,/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/lib/libmlir_runner_utils.so
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir
# RUN: at line 26
/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/mlir-opt /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir --sparsifier="enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true" | /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/mlir-cpu-runner -e main -entry-point-result=void -shared-libs=/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/lib/libmlir_c_runner_utils.so,/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/lib/libmlir_runner_utils.so | /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/mlir-opt /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir '--sparsifier=enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true'
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/mlir-cpu-runner -e main -entry-point-result=void -shared-libs=/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/lib/libmlir_c_runner_utils.so,/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/lib/libmlir_runner_utils.so
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir
# RUN: at line 29
/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/mlir-opt /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir --sparsifier="enable-arm-sve=true enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true" | mlir-cpu-runner --march=aarch64 --mattr="+sve" -e main -entry-point-result=void -shared-libs=/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/./lib/libmlir_runner_utils.so,/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/./lib/libmlir_c_runner_utils.so | /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/mlir-opt /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir '--sparsifier=enable-arm-sve=true enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true'
# .---command stderr------------
# | mlir-opt: ../llvm/llvm/include/llvm/ADT/DenseMap.h:419: void llvm::DenseMapBase<llvm::DenseMap<llvm::SmallVector<mlir::Value, 1>, llvm::SmallVector<mlir::Value, 1>, (anonymous namespace)::ValueVectorMapInfo>, llvm::SmallVector<mlir::Value, 1>, llvm::SmallVector<mlir::Value, 1>, (anonymous namespace)::ValueVectorMapInfo, llvm::detail::DenseMapPair<llvm::SmallVector<mlir::Value, 1>, llvm::SmallVector<mlir::Value, 1>>>::moveFromOldBuckets(BucketT *, BucketT *) [DerivedT = llvm::DenseMap<llvm::SmallVector<mlir::Value, 1>, llvm::SmallVector<mlir::Value, 1>, (anonymous namespace)::ValueVectorMapInfo>, KeyT = llvm::SmallVector<mlir::Value, 1>, ValueT = llvm::SmallVector<mlir::Value, 1>, KeyInfoT = (anonymous namespace)::ValueVectorMapInfo, BucketT = llvm::detail::DenseMapPair<llvm::SmallVector<mlir::Value, 1>, llvm::SmallVector<mlir::Value, 1>>]: Assertion `!FoundVal && "Key already in new map?"' failed.
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
# | Stack dump:
# | 0.	Program arguments: /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/mlir-opt /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir "--sparsifier=enable-arm-sve=true enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true"
# |  #0 0x0000c0ace58d9e60 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/mlir-opt+0x4319e60)
# |  #1 0x0000c0ace58d7dac llvm::sys::RunSignalHandlers() (/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/mlir-opt+0x4317dac)
# |  #2 0x0000c0ace58da6b4 SignalHandler(int) Signals.cpp:0:0
# |  #3 0x0000e8f5ed4949d0 (linux-vdso.so.1+0x9d0)
# |  #4 0x0000e8f5ecfff200 __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
# |  #5 0x0000e8f5ecfba67c gsignal ./signal/../sysdeps/posix/raise.c:27:6
# |  #6 0x0000e8f5ecfa7130 abort ./stdlib/abort.c:81:7
# |  #7 0x0000e8f5ecfb3fd0 __assert_fail_base ./assert/assert.c:89:7
# |  #8 0x0000e8f5ecfb4040 __assert_perror_fail ./assert/assert-perr.c:31:1
# |  #9 0x0000c0ace8b430a0 llvm::DenseMapBase<llvm::DenseMap<llvm::SmallVector<mlir::Value, 1u>, llvm::SmallVector<mlir::Value, 1u>, (anonymous namespace)::ValueVectorMapInfo, llvm::detail::DenseMapPair<llvm::SmallVector<mlir::Value, 1u>, llvm::SmallVector<mlir::Value, 1u>>>, llvm::SmallVector<mlir::Value, 1u>, llvm::SmallVector<mlir::Value, 1u>, (anonymous namespace)::ValueVectorMapInfo, llvm::detail::DenseMapPair<llvm::SmallVector<mlir::Value, 1u>, llvm::SmallVector<mlir::Value, 1u>>>::grow(unsigned int) DialectConversion.cpp:0:0
# | #10 0x0000c0ace8b42cb0 llvm::detail::DenseMapPair<llvm::SmallVector<mlir::Value, 1u>, llvm::SmallVector<mlir::Value, 1u>>* llvm::DenseMapBase<llvm::DenseMap<llvm::SmallVector<mlir::Value, 1u>, llvm::SmallVector<mlir::Value, 1u>, (anonymous namespace)::ValueVectorMapInfo, llvm::detail::DenseMapPair<llvm::SmallVector<mlir::Value, 1u>, llvm::SmallVector<mlir::Value, 1u>>>, llvm::SmallVector<mlir::Value, 1u>, llvm::SmallVector<mlir::Value, 1u>, (anonymous namespace)::ValueVectorMapInfo, llvm::detail::DenseMapPair<llvm::SmallVector<mlir::Value, 1u>, llvm::SmallVector<mlir::Value, 1u>>>::InsertIntoBucketImpl<llvm::SmallVector<mlir::Value, 1u>>(llvm::SmallVector<mlir::Value, 1u> const&, llvm::detail::DenseMapPair<llvm::SmallVector<mlir::Value, 1u>, llvm::SmallVector<mlir::Value, 1u>>*) DialectConversion.cpp:0:0
# | #11 0x0000c0ace8b34728 mlir::detail::ConversionPatternRewriterImpl::buildUnresolvedMaterialization((anonymous namespace)::MaterializationKind, mlir::OpBuilder::InsertPoint, mlir::Location, llvm::SmallVector<mlir::Value, 1u>, mlir::ValueRange, mlir::TypeRange, mlir::Type, mlir::TypeConverter const*, mlir::UnrealizedConversionCastOp*) DialectConversion.cpp:0:0
# | #12 0x0000c0ace8b33618 mlir::detail::ConversionPatternRewriterImpl::remapValues(llvm::StringRef, std::optional<mlir::Location>, mlir::PatternRewriter&, mlir::ValueRange, llvm::SmallVector<llvm::SmallVector<mlir::Value, 1u>, 2u>&) (/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/mlir-opt+0x7573618)
# | #13 0x0000c0ace8b39ea8 mlir::ConversionPattern::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&) const (/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/mlir-opt+0x7579ea8)
# | #14 0x0000c0aceb9b2074 void llvm::function_ref<void ()>::callback_fn<mlir::PatternApplicator::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&, llvm::function_ref<bool (mlir::Pattern const&)>, llvm::function_ref<void (mlir::Pattern const&)>, llvm::function_ref<llvm::LogicalResult (mlir::Pattern const&)>)::$_0>(long) PatternApplicator.cpp:0:0
# | #15 0x0000c0aceb9ae994 mlir::PatternApplicator::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&, llvm::function_ref<bool (mlir::Pattern const&)>, llvm::function_ref<void (mlir::Pattern const&)>, llvm::function_ref<llvm::LogicalResult (mlir::Pattern const&)>) (/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/mlir-opt+0xa3ee994)
# | #16 0x0000c0ace8b3aef4 (anonymous namespace)::OperationLegalizer::legalize(mlir::Operation*, mlir::ConversionPatternRewriter&) DialectConversion.cpp:0:0
# | #17 0x0000c0ace8b3a090 mlir::OperationConverter::convert(mlir::ConversionPatternRewriter&, mlir::Operation*) (/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/mlir-opt+0x757a090)
# | #18 0x0000c0ace8b3b10c mlir::OperationConverter::convertOperations(llvm::ArrayRef<mlir::Operation*>) (/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/mlir-opt+0x757b10c)
# | #19 0x0000c0ace8b40c0c mlir::applyPartialConversion(mlir::Operation*, mlir::ConversionTarget const&, mlir::FrozenRewritePatternSet const&, mlir::ConversionConfig) (/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/mlir-opt+0x7580c0c)
# | #20 0x0000c0ace8a557c8 (anonymous namespace)::ConvertVectorToLLVMPass::runOnOperation() ConvertVectorToLLVMPass.cpp:0:0
# | #21 0x0000c0ace8ade110 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/mlir-opt+0x751e110)
# | #22 0x0000c0ace8ade8e4 mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/mlir-opt+0x751e8e4)
# | #23 0x0000c0ace8ae0df8 mlir::PassManager::run(mlir::Operation*) (/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/mlir-opt+0x7520df8)
# | #24 0x0000c0ace8ad9804 performActions(llvm::raw_ostream&, std::shared_ptr<llvm::SourceMgr> const&, mlir::MLIRContext*, mlir::MlirOptMainConfig const&) MlirOptMain.cpp:0:0
# | #25 0x0000c0ace8ad9480 llvm::LogicalResult llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>::callback_fn<mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&)::$_0>(long, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&) MlirOptMain.cpp:0:0
# | #26 0x0000c0ace8b8f88c mlir::splitAndProcessBuffer(std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef) (/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/bin/mlir-opt+0x75cf88c)
...

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

Labels

flang:fir-hlfir flang Flang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants