[llvm-commits] [poolalloc] r49452 - /poolalloc/trunk/lib/DSA/Local.cpp
John Criswell
criswell at uiuc.edu
Wed Apr 9 14:39:13 PDT 2008
Author: criswell
Date: Wed Apr 9 16:39:13 2008
New Revision: 49452
URL: http://llvm.org/viewvc/llvm-project?rev=49452&view=rev
Log:
Handle the stack saving and restoring intrinsics.
Modified:
poolalloc/trunk/lib/DSA/Local.cpp
Modified: poolalloc/trunk/lib/DSA/Local.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/Local.cpp?rev=49452&r1=49451&r2=49452&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/Local.cpp (original)
+++ poolalloc/trunk/lib/DSA/Local.cpp Wed Apr 9 16:39:13 2008
@@ -539,6 +539,19 @@
getValueDest(*CS.getInstruction()).
mergeWith(getValueDest(**(CS.arg_begin())));
return true;
+ case Intrinsic::stacksave: {
+ DSNode * Node = createNode();
+ Node->setAllocaMarker()->setIncompleteMarker()->setUnknownMarker();
+ Node->foldNodeCompletely();
+ setDestTo (*(CS.getInstruction()), Node);
+ return true;
+ }
+ case Intrinsic::stackrestore:
+ getValueDest(*CS.getInstruction()).getNode()->setAllocaMarker()
+ ->setIncompleteMarker()
+ ->setUnknownMarker()
+ ->foldNodeCompletely();
+ return true;
case Intrinsic::vaend:
case Intrinsic::dbg_func_start:
case Intrinsic::dbg_region_end:
More information about the llvm-commits
mailing list