summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SplitKit.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-08-02 22:54:14 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-08-02 22:54:14 +0000
commitfe62d92b7bbaf73e576bec0c0b11cfa6c191aa87 (patch)
tree47ac10227955fa8f4d876c136c8b9accbfba33ca /lib/CodeGen/SplitKit.h
parent779fa1b0b772bbf6f234d5f4dedcc2a2363d3929 (diff)
downloadllvm-fe62d92b7bbaf73e576bec0c0b11cfa6c191aa87.tar.gz
llvm-fe62d92b7bbaf73e576bec0c0b11cfa6c191aa87.tar.bz2
llvm-fe62d92b7bbaf73e576bec0c0b11cfa6c191aa87.tar.xz
Rename {First,Last}Use to {First,Last}Instr.
With a 'FirstDef' field right there, it is very confusing that FirstUse refers to an instruction that may be a def. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136739 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SplitKit.h')
-rw-r--r--lib/CodeGen/SplitKit.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/SplitKit.h b/lib/CodeGen/SplitKit.h
index 92d6bc88f5..33c3c07eb4 100644
--- a/lib/CodeGen/SplitKit.h
+++ b/lib/CodeGen/SplitKit.h
@@ -76,8 +76,8 @@ public:
///
struct BlockInfo {
MachineBasicBlock *MBB;
- SlotIndex FirstUse; ///< First instr using current reg.
- SlotIndex LastUse; ///< Last instr using current reg.
+ SlotIndex FirstInstr; ///< First instr accessing current reg.
+ SlotIndex LastInstr; ///< Last instr accessing current reg.
SlotIndex FirstDef; ///< First non-phi valno->def, or SlotIndex().
bool LiveIn; ///< Current reg is live in.
bool LiveOut; ///< Current reg is live out.
@@ -85,7 +85,7 @@ public:
/// isOneInstr - Returns true when this BlockInfo describes a single
/// instruction.
bool isOneInstr() const {
- return SlotIndex::isSameInstr(FirstUse, LastUse);
+ return SlotIndex::isSameInstr(FirstInstr, LastInstr);
}
};