[llvm] r223885 - LiveInterval: Introduce LiveQuery accessor for dead or live out values.
Matthias Braun
matze at braunis.de
Tue Dec 9 17:12:33 PST 2014
Author: matze
Date: Tue Dec 9 19:12:33 2014
New Revision: 223885
URL: http://llvm.org/viewvc/llvm-project?rev=223885&view=rev
Log:
LiveInterval: Introduce LiveQuery accessor for dead or live out values.
Modified:
llvm/trunk/include/llvm/CodeGen/LiveInterval.h
Modified: llvm/trunk/include/llvm/CodeGen/LiveInterval.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/LiveInterval.h?rev=223885&r1=223884&r2=223885&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/LiveInterval.h (original)
+++ llvm/trunk/include/llvm/CodeGen/LiveInterval.h Tue Dec 9 19:12:33 2014
@@ -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 {
More information about the llvm-commits
mailing list