MachineCSE: Clear dead-def flag on CSE.
authorMatthias Braun <matze@braunis.de>
Wed, 4 Feb 2015 19:35:16 +0000 (19:35 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 4 Feb 2015 19:35:16 +0000 (19:35 +0000)
commita602c106862be2af0241b20ff5d3449b59264ed0
treea3130112735a2af00c9aa4629bef2d91e56c5b5f
parent7724d08fc6aa4817da98979cdece85ee7ef7bdac
MachineCSE: Clear dead-def flag on CSE.

In case CSE reuses a previoulsy unused register the dead-def flag has to
be cleared on the def operand, as exposed by the arm64-cse.ll test.

This fixes PR22439 and the corresponding rdar://19694987

Differential Revision: http://reviews.llvm.org/D7395

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228178 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineInstr.h
lib/CodeGen/MachineCSE.cpp
lib/CodeGen/MachineInstr.cpp
test/CodeGen/AArch64/arm64-cse.ll