[PATCH] D52558: [PHIElimination] Lower a PHI node with only undef uses as IMPLICIT_DEF

Bjorn Pettersson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 26 09:20:59 PDT 2018


bjope created this revision.
Herald added subscribers: nhaehnle, jvesely.

The lowering of PHI nodes used to detect if all inputs originated
from IMPLICIT_DEF's. If so the PHI node was replaced by an
IMPLICIT_DEF. Now we also consider undef uses when checking the
inputs. So if all inputs are implicitly defined or undef we
lower the PHI to an IMPLICIT_DEF. This makes
PHIElimination::LowerPHINode more consistent as it checks
both implicit and undef properties at later stages.


Repository:
  rL LLVM

https://reviews.llvm.org/D52558

Files:
  lib/CodeGen/PHIElimination.cpp
  test/CodeGen/AMDGPU/phi-elimination-assertion.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52558.167152.patch
Type: text/x-patch
Size: 3772 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180926/cde4a571/attachment.bin>


More information about the llvm-commits mailing list