Skip to content

segfault from selectCopy on AArch64 with LTO #53315

Closed
@pnkfelix

Description

@pnkfelix

This bug is spawned off of rust-lang/rust#91671 (comment)

The AArch64InstructionSelector.cpp code has this line:

const RegisterBank &SrcRegBank = *RBI.getRegBank(SrcReg, MRI, TRI);

The problem is that RBI.getRegBank can return null, and does so during rustc's use of LLVM.

You can see the problematic behavior atop this trace that I've uploaded to pernos.co, here. That trace is derived from code that I've put into a dedicated repository, here: https://github.com/pnkfelix/issue-91671-a64-doctestfail

I have not yet managed to narrow the test case down to something that I can replicate atop llc or opt alone, but I wanted to start tracking the issue here in the LLVM organization so that LLVM developers could help me narrow this down further.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions