[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 15:46:54 PDT 2017


arsenm created this revision.
Herald added subscribers: tpr, wdng.

AMDGPU needs to know if calls are present when lowering arguments,
but this was only set later. Set it along with other stack properties.


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,8 @@
                 MF->getFrameInfo().setHasOpaqueSPAdjustment(true);
             }
           }
+        } else {
+          MF->getFrameInfo().setHasCalls(true);
         }
       }
 


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


More information about the llvm-commits mailing list