Issue |
83000
|
Summary |
[DebugInfo] UnrollAndJam transformation causes "DebugProgramValues must not appear before PHI nodes in a block!"
|
Labels |
new issue
|
Assignees |
|
Reporter |
mveriksson
|
Related to #74735
[reduced.ll.gz](https://github.com/llvm/llvm-project/files/14404949/reduced.ll.gz)
Running loop-unroll-and-jam on the attached file gives:
```
$ opt -passes='loop-unroll-and-jam' -o /dev/null -allow-unroll-and-jam -unroll-and-jam-count=2 reduced.ll
DebugProgramValues must not appear before PHI nodes in a block!
Invalid configuration of new-debug-info data found
LLVM ERROR: Broken module found, compilation aborted!
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: opt -passes=loop-unroll-and-jam -o /dev/null -allow-unroll-and-jam -unroll-and-jam-count=2 reduced.ll
#0 0x00005610b5bd0c67 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (opt+0x3dbfc67)
#1 0x00005610b5bce73e llvm::sys::RunSignalHandlers() (opt+0x3dbd73e)
#2 0x00005610b5bd162f SignalHandler(int) Signals.cpp:0:0
#3 0x00007fb90cb53630 __restore_rt sigaction.c:0:0
#4 0x00007fb90a29a387 raise (/lib64/libc.so.6+0x36387)
#5 0x00007fb90a29ba78 abort (/lib64/libc.so.6+0x37a78)
#6 0x00005610b5bba2a2 llvm::report_fatal_error(llvm::Twine const&, bool) (opt+0x3da92a2)
#7 0x00005610b5bba0d6 (opt+0x3da90d6)
#8 0x00005610b61b6a1b (opt+0x43a5a1b)
#9 0x00005610b6e5b19d llvm::detail::PassModel<llvm::Module, llvm::VerifierPass, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) NewPMDriver.cpp:0:0
#10 0x00005610b5d91aa6 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (opt+0x3f80aa6)
#11 0x00005610b6e543fb llvm::runPassPipeline(llvm::StringRef, llvm::Module&, llvm::TargetMachine*, llvm::TargetLibraryInfoImpl*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::StringRef, llvm::ArrayRef<llvm::PassPlugin>, llvm::ArrayRef<std::function<void (llvm::PassBuilder&)>>, llvm::opt_tool::OutputKind, llvm::opt_tool::VerifierKind, bool, bool, bool, bool, bool, bool, bool) (opt+0x50433fb)
#12 0x00005610b5b991e8 optMain (opt+0x3d881e8)
#13 0x00007fb90a286555 __libc_start_main (/lib64/libc.so.6+0x22555)
#14 0x00005610b5b92b29 _start (opt+0x3d81b29)
Aborted
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs