[PATCH] D64946: [AMDGPU] Fix trivial PHI into SI_END_CF.
Michael Liao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 18 13:32:45 PDT 2019
hliao created this revision.
hliao added reviewers: arsenm, rampitec.
Herald added subscribers: llvm-commits, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, jvesely, kzhuravl.
Herald added a project: LLVM.
- SI_END_CF, a MBB prologue instruction, should not take any source from PHI. But, LCSSA pass may insert one.
- Teach PHIElim to handle such case by providing target-specific hook to get the insert point for PHI lowering (replace PHI with COPY). So that, the target could canonicalize any MBB prologue instructions.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D64946
Files:
llvm/include/llvm/CodeGen/TargetInstrInfo.h
llvm/lib/CodeGen/PHIElimination.cpp
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
llvm/lib/Target/AMDGPU/SIInstrInfo.h
llvm/test/CodeGen/AMDGPU/lcssa-optnone.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64946.210658.patch
Type: text/x-patch
Size: 4225 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190718/fdabc541/attachment.bin>
More information about the llvm-commits
mailing list