[llvm] [CodeGen] Use optimized domtree for MachineFunction (PR #102107)

Piotr Sobczak via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 8 10:01:51 PDT 2024


piotrAMD wrote:

I came across another case where this patch triggers the assertion:

llvm/include/llvm/CodeGen/MachineBasicBlock.h:1319: static unsigned int llvm::GraphTraits<const llvm::MachineBasicBlock *>::getNumber(const llvm::MachineBasicBlock *): Assertion `BB->getNumber() >= 0 && "negative block number"' failed.

Note: neither #102427 nor #102453 helps.

Repro:
llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1100 -run-pass si-insert-waitcnts -verify-machineinstrs repro.txt
[repro.txt](https://github.com/user-attachments/files/16551223/repro.txt)



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


More information about the llvm-commits mailing list