[PATCH] D31962: DAG: Set hasCalls on frame info earlier

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 11 16:18:45 PDT 2017


arsenm updated this revision to Diff 94904.
arsenm added a comment.

Skip intrinsics


https://reviews.llvm.org/D31962

Files:
  lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp


Index: lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
===================================================================
--- lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
+++ lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
@@ -190,6 +190,9 @@
                 MF->getFrameInfo().setHasOpaqueSPAdjustment(true);
             }
           }
+        } else if (const Function *F = CS.getCalledFunction()) {
+          if (!F->isIntrinsic())
+            MF->getFrameInfo().setHasCalls(true);
         }
       }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31962.94904.patch
Type: text/x-patch
Size: 522 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170411/b7bba158/attachment.bin>


More information about the llvm-commits mailing list