[PATCH] D106418: [Attributor][NFC] Modify isAssumedHeapToStack for const argument
Giorgis Georgakoudis via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 21 01:51:08 PDT 2021
ggeorgakoudis updated this revision to Diff 360386.
ggeorgakoudis added a comment.
Rebase
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106418/new/
https://reviews.llvm.org/D106418
Files:
llvm/include/llvm/Transforms/IPO/Attributor.h
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
@@ -5707,7 +5707,7 @@
++BUILD_STAT_NAME(MallocCalls, Function);
}
- bool isAssumedHeapToStack(CallBase &CB) const override {
+ bool isAssumedHeapToStack(const CallBase &CB) const override {
if (isValidState())
if (AllocationInfo *AI = AllocationInfos.lookup(&CB))
return AI->Status != AllocationInfo::INVALID;
Index: llvm/include/llvm/Transforms/IPO/Attributor.h
===================================================================
--- llvm/include/llvm/Transforms/IPO/Attributor.h
+++ llvm/include/llvm/Transforms/IPO/Attributor.h
@@ -3537,7 +3537,7 @@
AAHeapToStack(const IRPosition &IRP, Attributor &A) : Base(IRP) {}
/// Returns true if HeapToStack conversion is assumed to be possible.
- virtual bool isAssumedHeapToStack(CallBase &CB) const = 0;
+ virtual bool isAssumedHeapToStack(const CallBase &CB) const = 0;
/// Create an abstract attribute view for the position \p IRP.
static AAHeapToStack &createForPosition(const IRPosition &IRP, Attributor &A);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106418.360386.patch
Type: text/x-patch
Size: 1245 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210721/371afe59/attachment.bin>
More information about the llvm-commits
mailing list