When rewriting defs and uses after spilling, don't set the weight of a
authorDavid Greene <greened@obbligato.org>
Thu, 22 May 2008 21:16:33 +0000 (21:16 +0000)
committerDavid Greene <greened@obbligato.org>
Thu, 22 May 2008 21:16:33 +0000 (21:16 +0000)
commitabe93d95e8cc721a5b24b8225dc1a92569276c8a
tree8bdd746a452085dfc3ac711a41696082865c7d2b
parentcff860801e8cac730c3b171e1dc8b66b7900dec6
When rewriting defs and uses after spilling, don't set the weight of a
live interval to infinity if the instruction being rewritten is an
original remat def instruction.  We were only checking against the clone
of the remat def which doesn't actually appear in the IR at all.

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