Author: mrs
Date: Sun Feb 8 16:00:53 2009
New Revision: 64095
URL: http://llvm.org/viewvc/llvm-project?rev=64095&view=rev
Log:
When we're at the stack depth we want, there isn't anything to do.
Modified:
cfe/trunk/lib/CodeGen/CGStmt.cpp
Modified: cfe/trunk/lib/CodeGen/CGStmt.cpp
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGStmt.cpp?rev=64095&r1=64094&r2=64095&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGStmt.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGStmt.cpp Sun Feb 8 16:00:53 2009
@@ -199,6 +199,10 @@
}
bool CodeGenFunction::EmitStackUpdate(llvm::Value *V) {
+ // If we're already at the depth we want...
+ if (StackDepth == V)
+ return false;
+
// V can be 0 here, if it is, be sure to start searching from the
// top of the function, as we want the next save after that point.
for (unsigned int i = 0; i < StackSaveValues.size(); ++i)
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits