Add <imp-def> and <imp-kill> operands when replacing virtual sub-register defs and...
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 6 Jan 2010 00:29:28 +0000 (00:29 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 6 Jan 2010 00:29:28 +0000 (00:29 +0000)
commit8efadf94b568c08de3ff8ce35fd904a935387406
treea322dde490fd14ac4875576a7ea81801871d9901
parent3f09487404bc46297dc6fd91ca3ac478c3a7fa34
Add <imp-def> and <imp-kill> operands when replacing virtual sub-register defs and kills.

An instruction like this:

  %reg1097:1<def> = VMOVSR %R3<kill>, 14, %reg0

Must be replaced with this when substituting physical registers:

  %S0<def> = VMOVSR %R3<kill>, 14, %reg0, %D0<imp-def>

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