[Mlir-commits] [flang] [mlir] [Flang] Add new ConvertComplexPow pass for Flang (PR #158642)
Leandro Lupori
llvmlistbot at llvm.org
Mon Sep 22 06:17:03 PDT 2025
luporl wrote:
`flang/test/Transforms/convert-complex-pow.fir` is causing a crash on macOS:
```
FAIL: Flang :: Transforms/convert-complex-pow.fir (1 of 1)
******************** TEST 'Flang :: Transforms/convert-complex-pow.fir' FAILED ********************
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
fir-opt --convert-complex-pow /Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Transforms/convert-complex-pow.fir | /Users/leandro.lupori/home/git/flang/build/bin/FileCheck /Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Transforms/convert-complex-pow.fir
# executed command: fir-opt --convert-complex-pow /Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Transforms/convert-complex-pow.fir
# .---command stderr------------
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0. Program arguments: fir-opt --convert-complex-pow /Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Transforms/convert-complex-pow.fir
# | #0 0x0000000106274464 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/Users/leandro.lupori/home/git/flang/build/bin/fir-opt+0x101808464)
# | #1 0x000000010627226c llvm::sys::RunSignalHandlers() (/Users/leandro.lupori/home/git/flang/build/bin/fir-opt+0x10180626c)
# | #2 0x0000000106274f5c SignalHandler(int, __siginfo*, void*) (/Users/leandro.lupori/home/git/flang/build/bin/fir-opt+0x101808f5c)
# | #3 0x000000018db5d6a4 (/usr/lib/system/libsystem_platform.dylib+0x1804ad6a4)
# | #4 0x0000000104c79a7c void llvm::function_ref<void (mlir::Operation*)>::callback_fn<(anonymous namespace)::ConvertComplexPowPass::runOnOperation()::$_0>(long, mlir::Operation*) (/Users/leandro.lupori/home/git/flang/build/bin/fir-opt+0x10020da7c)
# | #5 0x0000000104c79a7c void llvm::function_ref<void (mlir::Operation*)>::callback_fn<(anonymous namespace)::ConvertComplexPowPass::runOnOperation()::$_0>(long, mlir::Operation*) (/Users/leandro.lupori/home/git/flang/build/bin/fir-opt+0x10020da7c)
# | #6 0x0000000104bf5784 void mlir::detail::walk<mlir::ForwardIterator>(mlir::Operation*, llvm::function_ref<void (mlir::Operation*)>, mlir::WalkOrder) (/Users/leandro.lupori/home/git/flang/build/bin/fir-opt+0x100189784)
# | #7 0x0000000104bf5784 void mlir::detail::walk<mlir::ForwardIterator>(mlir::Operation*, llvm::function_ref<void (mlir::Operation*)>, mlir::WalkOrder) (/Users/leandro.lupori/home/git/flang/build/bin/fir-opt+0x100189784)
# | #8 0x0000000104c794c0 (anonymous namespace)::ConvertComplexPowPass::runOnOperation() (/Users/leandro.lupori/home/git/flang/build/bin/fir-opt+0x10020d4c0)
# | #9 0x0000000105da747c mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (/Users/leandro.lupori/home/git/flang/build/bin/fir-opt+0x10133b47c)
# | #10 0x0000000105da7c9c mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (/Users/leandro.lupori/home/git/flang/build/bin/fir-opt+0x10133bc9c)
# | #11 0x0000000105dade60 mlir::PassManager::runPasses(mlir::Operation*, mlir::AnalysisManager) (/Users/leandro.lupori/home/git/flang/build/bin/fir-opt+0x101341e60)
# | #12 0x0000000105dad5dc mlir::PassManager::run(mlir::Operation*) (/Users/leandro.lupori/home/git/flang/build/bin/fir-opt+0x1013415dc)
# | #13 0x0000000105e25378 performActions(llvm::raw_ostream&, std::__1::shared_ptr<llvm::SourceMgr> const&, mlir::MLIRContext*, mlir::MlirOptMainConfig const&) (/Users/leandro.lupori/home/git/flang/build/bin/fir-opt+0x1013b9378)
# | #14 0x0000000105e24cf0 llvm::LogicalResult llvm::function_ref<llvm::LogicalResult (std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>, llvm::MemoryBufferRef const&, llvm::raw_ostream&)>::callback_fn<mlir::MlirOptMain(llvm::raw_ostream&, std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&)::$_0>(long, std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>, llvm::MemoryBufferRef const&, llvm::raw_ostream&) (/Users/leandro.lupori/home/git/flang/build/bin/fir-opt+0x1013b8cf0)
# | #15 0x0000000105e08b28 mlir::splitAndProcessBuffer(std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>, llvm::function_ref<llvm::LogicalResult (std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>, llvm::MemoryBufferRef const&, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef) (/Users/leandro.lupori/home/git/flang/build/bin/fir-opt+0x10139cb28)
# | #16 0x0000000105e1d96c mlir::MlirOptMain(llvm::raw_ostream&, std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&) (/Users/leandro.lupori/home/git/flang/build/bin/fir-opt+0x1013b196c)
# | #17 0x0000000105e1dce0 mlir::MlirOptMain(int, char**, llvm::StringRef, llvm::StringRef, mlir::DialectRegistry&) (/Users/leandro.lupori/home/git/flang/build/bin/fir-opt+0x1013b1ce0)
# | #18 0x0000000105e1df0c mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&) (/Users/leandro.lupori/home/git/flang/build/bin/fir-opt+0x1013b1f0c)
# | #19 0x0000000104a6dabc main (/Users/leandro.lupori/home/git/flang/build/bin/fir-opt+0x100001abc)
# | #20 0x000000018d782b98
# `-----------------------------
# error: command failed with exit status: -11
# executed command: /Users/leandro.lupori/home/git/flang/build/bin/FileCheck /Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Transforms/convert-complex-pow.fir
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /Users/leandro.lupori/home/git/flang/build/bin/FileCheck /Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Transforms/convert-complex-pow.fir
# `-----------------------------
# error: command failed with exit status: 2
--
```
https://github.com/llvm/llvm-project/pull/158642
More information about the Mlir-commits
mailing list