mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user