summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-12-10 01:12:33 +0000
committerMatthias Braun <matze@braunis.de>2014-12-10 01:12:33 +0000
commit630e42e1762ab2b618597c036a05113117354f15 (patch)
treecdb6b5058e23bc03ab1335980ca114f69d442969
parente3d3b88cb985c6a1d975463a00a57925b0ed64d1 (diff)
downloadbcm5719-llvm-630e42e1762ab2b618597c036a05113117354f15.tar.gz
bcm5719-llvm-630e42e1762ab2b618597c036a05113117354f15.zip
LiveInterval: Introduce LiveQuery accessor for dead or live out values.
llvm-svn: 223885
-rw-r--r--llvm/include/llvm/CodeGen/LiveInterval.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/LiveInterval.h b/llvm/include/llvm/CodeGen/LiveInterval.h
index 8b3bb41b787..18700801ea2 100644
--- a/llvm/include/llvm/CodeGen/LiveInterval.h
+++ b/llvm/include/llvm/CodeGen/LiveInterval.h
@@ -119,6 +119,12 @@ namespace llvm {
return isDeadDef() ? nullptr : LateVal;
}
+ /// Returns the value alive at the end of the instruction, if any. This can
+ /// be a live-through value, a live def or a dead def.
+ VNInfo *valueOutOrDead() const {
+ return LateVal;
+ }
+
/// Return the value defined by this instruction, if any. This includes
/// dead defs, it is the value created by the instruction's def operands.
VNInfo *valueDefined() const {
OpenPOWER on IntegriCloud