[llvm-commits] CVS: poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Nov 13 00:16:03 PST 2003
Changes in directory poolalloc/lib/PoolAllocate:
TransformFunctionBody.cpp updated: 1.12 -> 1.13
---
Log message:
Don't bother transforming noop calls
---
Diffs of the changes: (+3 -0)
Index: poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp
diff -u poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp:1.12 poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp:1.13
--- poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp:1.12 Wed Nov 12 19:43:48 2003
+++ poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp Thu Nov 13 00:15:09 2003
@@ -255,6 +255,9 @@
const PA::EquivClassInfo &ECI =
PAInfo.getECIForIndirectCallSite(CallSite::get(OrigInst));
+ if (ECI.ArgNodes.empty())
+ return; // No arguments to add? Transformation is a noop!
+
// Here we fill in CF with one of the possible called functions. Because we
// merged together all of the arguments to all of the functions in the
// equivalence set, it doesn't really matter which one we pick.
More information about the llvm-commits
mailing list