[PATCH] D97427: [AMDGPU] Do not annotate an else branch if there is a kill

Carl Ritson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 24 17:09:20 PST 2021


critson created this revision.
critson added reviewers: arsenm, piotr.
Herald added subscribers: kerbowa, jfb, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl.
critson requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

As llvm.amdgcn.kill is lowered to a terminator it can cause
else branch annotations to end up in the wrong block.
Do not annotate conditionals as else branches where there is
a kill to avoid this.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D97427

Files:
  llvm/lib/Target/AMDGPU/SIAnnotateControlFlow.cpp
  llvm/test/CodeGen/AMDGPU/si-annotate-cf-kill.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97427.326248.patch
Type: text/x-patch
Size: 6214 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210225/f5f06073/attachment.bin>


More information about the llvm-commits mailing list