[PATCH] D11311: Replace hardcoded threshold with an option when analyze read attributes

Xuetian Weng xweng at google.com
Thu Jul 23 15:46:33 PDT 2015


wengxt updated this revision to Diff 30532.
wengxt added a comment.

remove the threshold


http://reviews.llvm.org/D11311

Files:
  lib/Transforms/IPO/FunctionAttrs.cpp

Index: lib/Transforms/IPO/FunctionAttrs.cpp
===================================================================
--- lib/Transforms/IPO/FunctionAttrs.cpp
+++ lib/Transforms/IPO/FunctionAttrs.cpp
@@ -425,9 +425,6 @@
   // We don't need to track IsWritten. If A is written to, return immediately.
 
   for (Use &U : A->uses()) {
-    if (Count++ >= 20)
-      return Attribute::None;
-
     Visited.insert(&U);
     Worklist.push_back(&U);
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11311.30532.patch
Type: text/x-patch
Size: 442 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150723/ff2e6107/attachment.bin>


More information about the llvm-commits mailing list