[all-commits] [llvm/llvm-project] f08dad: [AMDGPU] Do not annotate an else branch if there i...

Carl Ritson via All-commits all-commits at lists.llvm.org
Thu Mar 11 19:02:30 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f08dadd242fde200d1e252d5b06b16ab8bbecbf5
      https://github.com/llvm/llvm-project/commit/f08dadd242fde200d1e252d5b06b16ab8bbecbf5
  Author: Carl Ritson <carl.ritson at amd.com>
  Date:   2021-03-12 (Fri, 12 Mar 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIAnnotateControlFlow.cpp
    A llvm/test/CodeGen/AMDGPU/si-annotate-cf-kill.ll

  Log Message:
  -----------
  [AMDGPU] Do not annotate an else branch if there is a kill

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.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D97427




More information about the All-commits mailing list