Properly handle reloading and spilling around partial redefines in
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 11 Oct 2010 18:10:36 +0000 (18:10 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 11 Oct 2010 18:10:36 +0000 (18:10 +0000)
commit40ef4fe82aefc3333f2cdeffb6ad28d9dfaccb8c
tree46c27fe95f4550a4a61296a5e92e2deb16be5237
parentffa0e71c334aed9172bee010828fc2707774e128
Properly handle reloading and spilling around partial redefines in
LocalRewriter.

This is a bit of a hack that adds an implicit use operand to model the
read-modify-write nature of a partial redef. Uses and defs are rewritten in
separate passes, and a single operand would never be processed twice.

<rdar://problem/8518892>

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