[PATCH] D35474: SSAUpdater: Add mode when Phi creation is not allowed

Serguei Katkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 17 00:58:39 PDT 2017


skatkov created this revision.

Add one more parameter to SSAUpdater to disable PHI node creation.
SSAUpdater will find a Phi node if it exists but will return undef value if
new Phi node should be created.

By default the behavior is not changed. Phi nodes can be created.

I need this patch for implementation of PR26223.


https://reviews.llvm.org/D35474

Files:
  include/llvm/Transforms/Utils/SSAUpdater.h
  include/llvm/Transforms/Utils/SSAUpdaterImpl.h
  lib/Transforms/Utils/SSAUpdater.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35474.106837.patch
Type: text/x-patch
Size: 4644 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170717/d8e52c4e/attachment.bin>


More information about the llvm-commits mailing list