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

via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 21 20:39:15 PDT 2024


coderchenlin wrote:

the error reported from there:
![image](https://github.com/llvm/llvm-project/assets/48561979/9286b3e3-b02c-4c01-887b-dc5049a84ee4)
`getSubtargetImpl` returns a nullptr, and makes the program crash. 

as far as I know, the opt should be independent of the target but codegenprepare is not. Thus, I think we should not register this pass.

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


More information about the llvm-commits mailing list