[PATCH] D111126: [AMDGPU] Only remove branches in SIInstrInfo::removeBranch

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 5 02:31:23 PDT 2021


foad accepted this revision.
foad added a comment.
This revision is now accepted and ready to land.

LGTM, given that it matches similar logic in analyzeBranch.

As a further cleanup maybe both analyzeBranch and removeBranch should stop using getFirstTerminator, and instead just look for one or two branch instructions right at the end of MBB?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111126/new/

https://reviews.llvm.org/D111126



More information about the llvm-commits mailing list