R600: CALL_FS consumes a stack size entry
authorVincent Lejeune <vljn@ovi.com>
Mon, 3 Jun 2013 15:44:42 +0000 (15:44 +0000)
committerVincent Lejeune <vljn@ovi.com>
Mon, 3 Jun 2013 15:44:42 +0000 (15:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183108 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/R600/R600ControlFlowFinalizer.cpp

index 832c375bf5b4f9a8b96ae960f406144cc04969f1..f2296133074c6271910e12b68895a5d52829f58b 100644 (file)
@@ -340,6 +340,7 @@ public:
         BuildMI(MBB, MBB.begin(), MBB.findDebugLoc(MBB.begin()),
             getHWInstrDesc(CF_CALL_FS));
         CfCount++;
+        MaxStack = 1;
       }
       std::vector<ClauseFile> FetchClauses, AluClauses;
       for (MachineBasicBlock::iterator I = MBB.begin(), E = MBB.end();