Skip to content
Snippets Groups Projects
Commit 630e42e1 authored by Matthias Braun's avatar Matthias Braun
Browse files

LiveInterval: Introduce LiveQuery accessor for dead or live out values.

llvm-svn: 223885
parent e3d3b88c
No related branches found
No related tags found
No related merge requests found
...@@ -119,6 +119,12 @@ namespace llvm { ...@@ -119,6 +119,12 @@ namespace llvm {
return isDeadDef() ? nullptr : LateVal; 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 /// Return the value defined by this instruction, if any. This includes
/// dead defs, it is the value created by the instruction's def operands. /// dead defs, it is the value created by the instruction's def operands.
VNInfo *valueDefined() const { VNInfo *valueDefined() const {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment