Added a check so that if we have two machine instructions in this form
authorBill Wendling <isanbard@gmail.com>
Mon, 21 Aug 2006 07:33:33 +0000 (07:33 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 21 Aug 2006 07:33:33 +0000 (07:33 +0000)
commitd36d03bf2daec79a364f32aba4f4a672c814c1bd
treefb79ec73a3da33131662a6b1c8352e02919b21b8
parent8ea5ecb0564b8822c70ad84202471f03e2690da7
Added a check so that if we have two machine instructions in this form

    MOV R0, R1
    MOV R1, R0

the second machine instruction is removed. Added a regression test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29792 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/VirtRegMap.cpp
test/CodeGen/X86/2006-08-21-ExtraMovInst.ll [new file with mode: 0644]