aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-04-08 20:02:37 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-04-08 20:02:37 +0000
commita57fabe815ccf016eead526eb3ef475f116ab155 (patch)
treec5766e5dbbe4131e812a643263b6355ff962132e /include
parentb8db3c2c507cc115ed773209eae6cb8b89db1586 (diff)
downloadexternal_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.h4
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
//