summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/LiveInterval.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-09-25 18:10:38 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-09-25 18:10:38 +0000
commit207f8f688b0d530ebe4542ae0db599a6463b670b (patch)
tree2324768f69a466186fee91e3af2945477d63b026 /include/llvm/CodeGen/LiveInterval.h
parente398018e863b30d43bb610077f7771c5798e39c9 (diff)
downloadllvm-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.h4
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.