[PATCH] D53431: clang appears not to respect __attribute__((noinline))

Francois de Ferriere via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 19 04:48:41 PDT 2018


fdeferriere updated this revision to Diff 170184.
fdeferriere added a comment.

git diff -U99999


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.170184.patch
Type: text/x-patch
Size: 549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181019/5bd3d33c/attachment.bin>


More information about the llvm-commits mailing list