[PATCH] D65586: [Attributor][NFC] Invalid DerefState is at fixpoint

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 4 10:54:46 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL367789: [Attributor][NFC] Invalid DerefState is at fixpoint (authored by jdoerfert, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D65586?vs=212837&id=213259#toc

Repository:
  rL LLVM

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

https://reviews.llvm.org/D65586

Files:
  llvm/trunk/lib/Transforms/IPO/Attributor.cpp


Index: llvm/trunk/lib/Transforms/IPO/Attributor.cpp
===================================================================
--- llvm/trunk/lib/Transforms/IPO/Attributor.cpp
+++ llvm/trunk/lib/Transforms/IPO/Attributor.cpp
@@ -1757,9 +1757,10 @@
   /// See AbstractState::isValidState()
   bool isValidState() const override { return DerefBytesState.isValidState(); }
 
-  // See AbstractState::isAtFixpoint()
+  /// See AbstractState::isAtFixpoint()
   bool isAtFixpoint() const override {
-    return DerefBytesState.isAtFixpoint() && NonNullGlobalState.isAtFixpoint();
+    return !isValidState() || (DerefBytesState.isAtFixpoint() &&
+                               NonNullGlobalState.isAtFixpoint());
   }
 
   /// See AbstractState::indicateOptimisticFixpoint(...)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65586.213259.patch
Type: text/x-patch
Size: 766 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190804/19af154e/attachment.bin>


More information about the llvm-commits mailing list