[PATCH] D64946: [AMDGPU] Fix trivial PHI into SI_END_CF.

Nicolai Hähnle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 19 05:22:24 PDT 2019


nhaehnle added a comment.

How about the following simpler logic:

- if the PHI is used by any basic-block prologue instruction (except other PHIs), then insert the COPY at the top of the basic block
- otherwise, insert the COPY after the basic-block prologue


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D64946





More information about the llvm-commits mailing list