[llvm] [Passes] opt Segmentation fault with the pass "codegenprepare" (PR #89566)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 21 21:22:03 PDT 2024


https://github.com/boomanaiden154 requested changes to this pull request.

This patch doesn't make a whole lot of sense. You can't just delete `codegenprepare` from the pass registry. The NewPM codegenprepare is used in *a lot* of tests, and needs to stay in tree for the backend NewPM migration efforts. The line of code you pointed out also is specific to the legacy pass manager, which wouldn't be impacted by deleting the pass from `PassRegistry.def`. I'm guessing it's segfaulting because you're missing target triple/datalayout information:
```
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
```

https://github.com/llvm/llvm-project/pull/89566


More information about the llvm-commits mailing list