[StatepointLowering] Update StatepointMaxSlotsRequired correctly
authorSanjoy Das <sanjoy@playingwithpointers.com>
Fri, 19 Feb 2016 18:15:56 +0000 (18:15 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Fri, 19 Feb 2016 18:15:56 +0000 (18:15 +0000)
commitf6fee29ceb7477ab42a233480c866dc90d7b12f6
tree2908d26214926ddc65050b204d4506ac79517497
parente8019df552fbb25329ee808b06a697cea171b370
[StatepointLowering] Update StatepointMaxSlotsRequired correctly

Now that we don't always add an element to AllocatedStackSlots if we
don't find a pre-existing unallocated stack slot, bumping
StatepointMaxSlotsRequired to `NumSlots + 1` is not correct.  Instead
bump the statistic near the push_back, to
Builder.FuncInfo.StatepointStackSlots.size().

llvm-svn: 261348
llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp