diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-09-25 18:10:38 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-09-25 18:10:38 +0000 |
commit | 207f8f688b0d530ebe4542ae0db599a6463b670b (patch) | |
tree | 2324768f69a466186fee91e3af2945477d63b026 /include/llvm/CodeGen/LiveInterval.h | |
parent | e398018e863b30d43bb610077f7771c5798e39c9 (diff) | |
download | llvm-207f8f688b0d530ebe4542ae0db599a6463b670b.tar.gz llvm-207f8f688b0d530ebe4542ae0db599a6463b670b.tar.bz2 llvm-207f8f688b0d530ebe4542ae0db599a6463b670b.tar.xz |
Avoid using VNInfo::getCopy as much as possible. I want to get rid of it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114794 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LiveInterval.h')
-rw-r--r-- | include/llvm/CodeGen/LiveInterval.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h index 7c44462693..706d449516 100644 --- a/include/llvm/CodeGen/LiveInterval.h +++ b/include/llvm/CodeGen/LiveInterval.h @@ -90,6 +90,10 @@ namespace llvm { /// undefined behavior. void setCopy(MachineInstr *c) { copy = c; } + /// isDefByCopy - Return true when this value was defined by a copy-like + /// instruction as determined by MachineInstr::isCopyLike. + bool isDefByCopy() const { return copy != 0; } + /// Returns true if one or more kills are PHI nodes. bool hasPHIKill() const { return flags & HAS_PHI_KILL; } /// Set the PHI kill flag on this value. |