[PATCH] D86703: Fix Attributor return status
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 27 05:39:54 PDT 2020
serge-sans-paille created this revision.
serge-sans-paille added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, okura, kuter, uenoku, hiraditya.
Herald added a reviewer: uenoku.
Herald added a project: LLVM.
serge-sans-paille requested review of this revision.
Herald added a reviewer: sstefan1.
Herald added a reviewer: baziotis.
Herald added a subscriber: bbn.
Removing functions does change the IR :-)
This is a requirement for https://reviews.llvm.org/D86589
https://reviews.llvm.org/D86703
Files:
llvm/lib/Transforms/IPO/Attributor.cpp
Index: llvm/lib/Transforms/IPO/Attributor.cpp
===================================================================
--- llvm/lib/Transforms/IPO/Attributor.cpp
+++ llvm/lib/Transforms/IPO/Attributor.cpp
@@ -1301,6 +1301,9 @@
for (Function *Fn : ToBeDeletedFunctions)
CGUpdater.removeFunction(*Fn);
+ if (!ToBeDeletedFunctions.empty())
+ ManifestChange = ChangeStatus::CHANGED;
+
NumFnDeleted += ToBeDeletedFunctions.size();
LLVM_DEBUG(dbgs() << "[Attributor] Deleted " << NumFnDeleted
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86703.288295.patch
Type: text/x-patch
Size: 504 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200827/7d543b86/attachment.bin>
More information about the llvm-commits
mailing list