[PATCH] D97495: [SimplifyCFG] avoid illegal phi with both poison and undef

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 26 14:30:34 PST 2021


spatel updated this revision to Diff 326802.
spatel added a comment.

Patch updated:
We have a dedicated function for replacing undef incoming values, so I enhanced that to account for poison mismatches.
This gives us the expected, optimized result in all of the test examples.


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

https://reviews.llvm.org/D97495

Files:
  llvm/lib/Transforms/Utils/Local.cpp
  llvm/test/Transforms/SimplifyCFG/poison-merge.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97495.326802.patch
Type: text/x-patch
Size: 6826 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210226/20cfdb6a/attachment.bin>


More information about the llvm-commits mailing list