aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineInstr.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-05-13 20:34:42 +0000
committerDan Gohman <gohman@apple.com>2010-05-13 20:34:42 +0000
commite6cd757e6800b9b94a6459ec148c0624c4f2e3c1 (patch)
treed5f6dc0117786538e247416458b5f8fb9bed5367 /include/llvm/CodeGen/MachineInstr.h
parent1e5a6c46b8f8cca0e4e6d582289bfd13cb462e39 (diff)
Teach MachineLICM and MachineSink how to clear kill flags conservatively
when they move instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103737 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstr.h')
-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 2d203a0aac..eefbd36daa 100644
--- a/include/llvm/CodeGen/MachineInstr.h
+++ b/include/llvm/CodeGen/MachineInstr.h
@@ -302,6 +302,10 @@ public:
/// reference if DefOpIdx is not null.
bool isRegTiedToDefOperand(unsigned UseOpIdx, unsigned *DefOpIdx = 0) const;
+ /// clearKillInfo - Clears kill flags on all operands.
+ ///
+ void clearKillInfo();
+
/// copyKillDeadInfo - Copies kill / dead operand properties from MI.
///
void copyKillDeadInfo(const MachineInstr *MI);