diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-04-08 20:02:37 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-04-08 20:02:37 +0000 |
commit | a57fabe815ccf016eead526eb3ef475f116ab155 (patch) | |
tree | c5766e5dbbe4131e812a643263b6355ff962132e /include | |
parent | b8db3c2c507cc115ed773209eae6cb8b89db1586 (diff) | |
download | external_llvm-a57fabe815ccf016eead526eb3ef475f116ab155.zip external_llvm-a57fabe815ccf016eead526eb3ef475f116ab155.tar.gz external_llvm-a57fabe815ccf016eead526eb3ef475f116ab155.tar.bz2 |
Coalescer should not delete copy instructions whose defs are partially dead. e.g.
%RDI<def,dead> = MOV64rr %RAX<kill>, %EDI<imp-def>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100804 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index fa81927..0d10395 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 // |