From a57fabe815ccf016eead526eb3ef475f116ab155 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Thu, 8 Apr 2010 20:02:37 +0000 Subject: Coalescer should not delete copy instructions whose defs are partially dead. e.g. %RDI = MOV64rr %RAX, %EDI git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100804 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineInstr.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/llvm/CodeGen') diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index fa81927527..0d1039560b 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -357,6 +357,10 @@ public: /// return 0. unsigned isConstantValuePHI() const; + /// allDefsAreDead - Return true if all the defs of this instruction are dead. + /// + bool allDefsAreDead() const; + // // Debugging support // -- cgit v1.2.3-70-g09d2