[PATCH] D86983: [Attributor] Fix AANoUndef initialization

Shinji Okumura via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 2 00:07:11 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG7558e9e5a2a9: [Attributor] Fix AANoUndef initialization (authored by okura).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D86983

Files:
  llvm/lib/Transforms/IPO/AttributorAttributes.cpp


Index: llvm/lib/Transforms/IPO/AttributorAttributes.cpp
===================================================================
--- llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+++ llvm/lib/Transforms/IPO/AttributorAttributes.cpp
@@ -7781,6 +7781,10 @@
 
   /// See AbstractAttribute::initialize(...).
   void initialize(Attributor &A) override {
+    if (getIRPosition().hasAttr({Attribute::NoUndef})) {
+      indicateOptimisticFixpoint();
+      return;
+    }
     Value &V = getAssociatedValue();
     if (isa<UndefValue>(V))
       indicatePessimisticFixpoint();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86983.289358.patch
Type: text/x-patch
Size: 569 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200902/51753a0f/attachment.bin>


More information about the llvm-commits mailing list