From 40a627ddf87fe8e5fe057fba405cc0893cf14e70 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Tue, 15 Jan 2008 22:58:11 +0000 Subject: Move some calls to getVRegDef higher in the callgraph, so they don't get executed as frequently in performance sensitive code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46027 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/LiveVariables.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/llvm/CodeGen') diff --git a/include/llvm/CodeGen/LiveVariables.h b/include/llvm/CodeGen/LiveVariables.h index 311d37e..a392cda 100644 --- a/include/llvm/CodeGen/LiveVariables.h +++ b/include/llvm/CodeGen/LiveVariables.h @@ -303,8 +303,10 @@ public: /// register. VarInfo &getVarInfo(unsigned RegIdx); - void MarkVirtRegAliveInBlock(unsigned reg, MachineBasicBlock *BB); - void MarkVirtRegAliveInBlock(unsigned reg, MachineBasicBlock *BB, + void MarkVirtRegAliveInBlock(VarInfo& VRInfo, MachineBasicBlock* DefBlock, + MachineBasicBlock *BB); + void MarkVirtRegAliveInBlock(VarInfo& VRInfo, MachineBasicBlock* DefBlock, + MachineBasicBlock *BB, std::vector &WorkList); void HandleVirtRegUse(unsigned reg, MachineBasicBlock *MBB, MachineInstr *MI); -- cgit v1.1