[llvm-commits] CVS: poolalloc/lib/PoolAllocate/PoolAllocate.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Nov 2 18:33:01 PST 2003
Changes in directory poolalloc/lib/PoolAllocate:
PoolAllocate.cpp updated: 1.29 -> 1.30
---
Log message:
Minor cleanup.
Ignore vaarg and vanext instrs for now
---
Diffs of the changes: (+9 -10)
Index: poolalloc/lib/PoolAllocate/PoolAllocate.cpp
diff -u poolalloc/lib/PoolAllocate/PoolAllocate.cpp:1.29 poolalloc/lib/PoolAllocate/PoolAllocate.cpp:1.30
--- poolalloc/lib/PoolAllocate/PoolAllocate.cpp:1.29 Sun Nov 2 18:29:26 2003
+++ poolalloc/lib/PoolAllocate/PoolAllocate.cpp Sun Nov 2 18:32:28 2003
@@ -345,16 +345,12 @@
FI.PoolArgLast += MarkedNodes.size();
-
- if (FuncECs.findClass(&F)) {
- // Update the equivalence class last pool argument information
- // only if there actually were pool arguments to the function.
- // Also, there is no entry for the Eq. class in EqClass2LastPoolArg
- // if there are no functions in the equivalence class with pool arguments.
- if (FI.PoolArgLast != FI.PoolArgFirst)
- EqClass2LastPoolArg[FuncECs.findClass(&F)] = FI.PoolArgLast - 1;
- }
-
+ // Update the equivalence class last pool argument information
+ // only if there actually were pool arguments to the function.
+ // Also, there is no entry for the Eq. class in EqClass2LastPoolArg
+ // if there are no functions in the equivalence class with pool arguments.
+ if (FuncECs.findClass(&F) && FI.PoolArgLast != FI.PoolArgFirst)
+ EqClass2LastPoolArg[FuncECs.findClass(&F)] = FI.PoolArgLast - 1;
}
// MakeFunctionClone - If the specified function needs to be modified for pool
@@ -626,6 +622,9 @@
void visitReturnInst(ReturnInst &I);
void visitStoreInst (StoreInst &I);
void visitPHINode(PHINode &I);
+
+ void visitVAArgInst(VAArgInst &I) { }
+ void visitVANextInst(VANextInst &I) { }
void visitInstruction(Instruction &I) {
std::cerr << "PoolAllocate does not recognize this instruction:\n" << I;
More information about the llvm-commits
mailing list