diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-10-12 08:50:34 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-10-12 08:50:34 +0000 |
commit | 32dfbeada7292167bb488f36a71a5a6a519ddaff (patch) | |
tree | 31e4a518a9a2e6d39858b20921f868948a28ec0b /include/llvm/CodeGen/MachineInstr.h | |
parent | 10136e7c7f599a559917e04f04e6dfbf025e451b (diff) |
EXTRACT_SUBREG coalescing support. The coalescer now treats EXTRACT_SUBREG like
(almost) a register copy. However, it always coalesced to the register of the
RHS (the super-register). All uses of the result of a EXTRACT_SUBREG are sub-
register uses which adds subtle complications to load folding, spiller rewrite,
etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42899 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstr.h')
-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 3dbda8dc78..beba6923ee 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -418,6 +418,10 @@ public: /// none is found. int findFirstPredOperandIdx() const; + /// isRegReDefinedByTwoAddr - Returns true if the Reg re-definition is due + /// to two addr elimination. + bool isRegReDefinedByTwoAddr(unsigned Reg) const; + /// copyKillDeadInfo - Copies kill / dead operand properties from MI. /// void copyKillDeadInfo(const MachineInstr *MI); |