[PATCH] D53431: clang appears not to respect __attribute__((noinline))
Francois de Ferriere via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 22 01:58:57 PDT 2018
fdeferriere updated this revision to Diff 170378.
fdeferriere added a comment.
Fixed typo
https://reviews.llvm.org/D53431
Files:
lib/Analysis/ValueLatticeUtils.cpp
Index: lib/Analysis/ValueLatticeUtils.cpp
===================================================================
--- lib/Analysis/ValueLatticeUtils.cpp
+++ lib/Analysis/ValueLatticeUtils.cpp
@@ -22,7 +22,8 @@
}
bool llvm::canTrackReturnsInterprocedurally(Function *F) {
- return F->hasExactDefinition() && !F->hasFnAttribute(Attribute::Naked);
+ return F->hasExactDefinition() && !F->hasFnAttribute(Attribute::Naked)
+ && !F->hasFnAttribute(Attribute::NoInline);
}
bool llvm::canTrackGlobalVariableInterprocedurally(GlobalVariable *GV) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53431.170378.patch
Type: text/x-patch
Size: 550 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181022/ed65fa4f/attachment.bin>
More information about the llvm-commits
mailing list