Don't require a BB to look-up live variables, unless they may need to
authorVikram S. Adve <vadve@cs.uiuc.edu>
Tue, 29 Jul 2003 19:32:04 +0000 (19:32 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Tue, 29 Jul 2003 19:32:04 +0000 (19:32 +0000)
be recomputed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7384 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/FunctionLiveVarInfo.h

index 0bdd7f92b9cb66931c50b6398e0438671476a088..9120d8eb7519a7676d565876d3587f8008b7d9b1 100644 (file)
@@ -110,13 +110,17 @@ public:
   // gets InSet of a BB
   const ValueSet &getInSetOfBB(const BasicBlock *BB) const;
 
-  // gets the Live var set BEFORE an instruction
+  // gets the Live var set BEFORE an instruction.
+  // if BB is specified and the live var set has not yet been computed,
+  // it will be computed on demand.
   const ValueSet &getLiveVarSetBeforeMInst(const MachineInstr *MI,
-                                           const BasicBlock *BB);
+                                           const BasicBlock *BB = 0);
 
   // gets the Live var set AFTER an instruction
+  // if BB is specified and the live var set has not yet been computed,
+  // it will be computed on demand.
   const ValueSet &getLiveVarSetAfterMInst(const MachineInstr *MI,
-                                          const BasicBlock *BB);
+                                          const BasicBlock *BB = 0);
 };
 
 #endif