[PATCH] D79350: Don't check for inalloca in IPConstantPropagation
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 5 08:36:55 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd056c0c71f95: Remove unnecessary check for inalloca in IPConstantPropagation (authored by aeubanks).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79350/new/
https://reviews.llvm.org/D79350
Files:
llvm/lib/Transforms/IPO/IPConstantPropagation.cpp
Index: llvm/lib/Transforms/IPO/IPConstantPropagation.cpp
===================================================================
--- llvm/lib/Transforms/IPO/IPConstantPropagation.cpp
+++ llvm/lib/Transforms/IPO/IPConstantPropagation.cpp
@@ -129,7 +129,7 @@
for (unsigned i = 0, e = ArgumentConstants.size(); i != e; ++i, ++AI) {
// Do we have a constant argument?
if (ArgumentConstants[i].getInt() || AI->use_empty() ||
- AI->hasInAllocaAttr() || (AI->hasByValAttr() && !F.onlyReadsMemory()))
+ (AI->hasByValAttr() && !F.onlyReadsMemory()))
continue;
Value *V = ArgumentConstants[i].getPointer();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79350.262125.patch
Type: text/x-patch
Size: 634 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200505/d40ec7dc/attachment.bin>
More information about the llvm-commits
mailing list