From: Jakob Stoklund Olesen Date: Tue, 2 Aug 2011 23:04:06 +0000 (+0000) Subject: Inform SpillPlacement about blocks with defs. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=5ebca793db6262386d7464d03cdaefeb5b640ad3;p=oota-llvm.git Inform SpillPlacement about blocks with defs. This information is not used for anything yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136741 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp index c88bb536fde..6f4eb5baab4 100644 --- a/lib/CodeGen/RegAllocGreedy.cpp +++ b/lib/CodeGen/RegAllocGreedy.cpp @@ -676,6 +676,7 @@ bool RAGreedy::addSplitConstraints(InterferenceCache::Cursor Intf, Intf.moveToBlock(BC.Number); BC.Entry = BI.LiveIn ? SpillPlacement::PrefReg : SpillPlacement::DontCare; BC.Exit = BI.LiveOut ? SpillPlacement::PrefReg : SpillPlacement::DontCare; + BC.ChangesValue = BI.FirstDef; if (!Intf.hasInterference()) continue;