From: Matthias Braun Date: Wed, 10 Dec 2014 01:12:33 +0000 (+0000) Subject: LiveInterval: Introduce LiveQuery accessor for dead or live out values. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c080fce9d5b6db3c91bdc4ec18987ad6b7782b3c;p=oota-llvm.git LiveInterval: Introduce LiveQuery accessor for dead or live out values. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223885 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h index 8b3bb41b787..18700801ea2 100644 --- a/include/llvm/CodeGen/LiveInterval.h +++ b/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 {