summaryrefslogtreecommitdiff
path: root/lib/CodeGen/PHIElimination.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2009-11-10 22:00:56 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2009-11-10 22:00:56 +0000
commite35e3c33dc5533dd1e8ab7d9f4039cc1429d56aa (patch)
treec89ec848962125ddc277acf964a22a9f43233b9d /lib/CodeGen/PHIElimination.h
parent6f84a5feee5c7322a5145992bd4704225987909c (diff)
downloadllvm-e35e3c33dc5533dd1e8ab7d9f4039cc1429d56aa.tar.gz
llvm-e35e3c33dc5533dd1e8ab7d9f4039cc1429d56aa.tar.bz2
llvm-e35e3c33dc5533dd1e8ab7d9f4039cc1429d56aa.tar.xz
Refactoring: Extract method PHIElimination::isLiveOut().
Clean up some whitespace. No functional changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86724 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PHIElimination.h')
-rw-r--r--lib/CodeGen/PHIElimination.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/PHIElimination.h b/lib/CodeGen/PHIElimination.h
index 3d02dfdcdd..8a04f9d6ac 100644
--- a/lib/CodeGen/PHIElimination.h
+++ b/lib/CodeGen/PHIElimination.h
@@ -89,6 +89,12 @@ namespace llvm {
///
void analyzePHINodes(const MachineFunction& Fn);
+ /// isLiveOut - Determine if Reg is live out from MBB, when not
+ /// considering PHI nodes. This means that Reg is either killed by
+ /// a successor block or passed through one.
+ bool isLiveOut(unsigned Reg, const MachineBasicBlock &MBB,
+ LiveVariables &LV);
+
// FindCopyInsertPoint - Find a safe place in MBB to insert a copy from
// SrcReg. This needs to be after any def or uses of SrcReg, but before
// any subsequent point where control flow might jump out of the basic