[PATCH] D111831: [amdgpu] Fix a crash case when preserving MDT in SILowerControlFlow
Michael Liao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 14 13:15:49 PDT 2021
hliao created this revision.
hliao added reviewers: foad, rampitec.
Herald added subscribers: kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl, arsenm.
hliao requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.
- When a redundant MBB is being erased from MDT, check whether its single successor is dominiated by it. If yes, update that successor's idom before erasing MBB; otherwise, it implies MBB is a leaf node and could be erased directly.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D111831
Files:
llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
llvm/test/CodeGen/AMDGPU/mdt-preserving-crash.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111831.379815.patch
Type: text/x-patch
Size: 8251 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211014/6b70db83/attachment.bin>
More information about the llvm-commits
mailing list