Issue 241863
Summary [ARM] "Constant Island pass failed to converge" on PGO compilation
Labels backend:ARM
Assignees davemgreen
Reporter mstorsjo
    When compiling LLVM with PGO, for an armv7-windows-gnu target, it hits an "LLVM ERROR: Constant Island pass failed to converge!" error since commit 2ebb2ae51364. This ends up breaking my nightly builds of llvm at https://github.com/mstorsjo/llvm-mingw/actions/runs/42957176788/job/130375243060.

That commit itself doesn't seem to directly be the cause of the issue, but it just changes the context so that the profile guided compilation ends up producing IR that hits this problem.

The issue above appears in an LTO+PGO build, but the same issue also appears without LTO, when compiling `llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp`.

The issue is reproducible by compiling a standalone `.ll` file with `llc` like this:

```console
$ llc x86disassembler.ll 
LLVM ERROR: Constant Island pass failed to converge!
```

[x86disassembler.ll.zip](https://github.com/user-attachments/files/34747392/x86disassembler.ll.zip)

This doesn't seem to be a recent regression, the same `.ll` input file fails in the same way all the way back to c851fb6892a674a1388cf4231ed89244c331c3bf; the `.ll` file is incompatible with earlier versions of LLVM.


A similar issue has been seen before, which was tracked in https://github.com/llvm/llvm-project/issues/25713 and fixed in 5e0c3ebe9e5086f864eb7d156b79b5c1ab9db7cf.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to