[PATCH] D85178: [Attributor} Check violation of returned position nonnull and noundef attribute in AAUndefinedBehavior

Shinji Okumura via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 3 20:10:22 PDT 2020


okura created this revision.
okura added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, kuter, uenoku, hiraditya.
Herald added a reviewer: uenoku.
Herald added a project: LLVM.
okura requested review of this revision.
Herald added a reviewer: sstefan1.
Herald added a reviewer: baziotis.
Herald added a subscriber: bbn.

This patch is a follow up of D84733 <https://reviews.llvm.org/D84733>.
If a function has noundef attribute in returned position, instructions that return undef or poison value cause UB.


https://reviews.llvm.org/D85178

Files:
  llvm/lib/Transforms/IPO/AttributorAttributes.cpp
  llvm/test/Transforms/Attributor/undefined_behavior.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85178.282789.patch
Type: text/x-patch
Size: 8364 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200804/cbd22e6c/attachment.bin>


More information about the llvm-commits mailing list