Count correctly when a COPY turns into a spill or reload.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 15 Sep 2011 18:22:52 +0000 (18:22 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 15 Sep 2011 18:22:52 +0000 (18:22 +0000)
commitd205f7a940dd38480ff6283328c7d429201cdf27
treeeb4e73ea98564d523f8c2fae5ea01f2b771f0fc2
parent1b69a128d6b98456c666b4031cc46c3d0fbe6177
Count correctly when a COPY turns into a spill or reload.

The number of spills could go negative since a folded COPY is just a
spill, and it may be eliminated.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139815 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/InlineSpiller.cpp