[llvm-commits] [llvm] r61237 - /llvm/trunk/lib/CodeGen/RegisterScavenging.cpp

Dan Gohman gohman at apple.com
Thu Dec 18 16:46:21 PST 2008


Author: djg
Date: Thu Dec 18 18:46:20 2008
New Revision: 61237

URL: http://llvm.org/viewvc/llvm-project?rev=61237&view=rev
Log:
Initialize the ImplicitDefed member, to avoid getting stale
data from a previous block.

Modified:
    llvm/trunk/lib/CodeGen/RegisterScavenging.cpp

Modified: llvm/trunk/lib/CodeGen/RegisterScavenging.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegisterScavenging.cpp?rev=61237&r1=61236&r2=61237&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/RegisterScavenging.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegisterScavenging.cpp Thu Dec 18 18:46:20 2008
@@ -112,6 +112,7 @@
   ScavengeRestore = NULL;
   CurrDist = 0;
   DistanceMap.clear();
+  ImplicitDefed.reset();
 
   // All registers started out unused.
   RegsAvailable.set();





More information about the llvm-commits mailing list