Enable KnownZero/One.clear().
authorZhou Sheng <zhousheng00@gmail.com>
Wed, 14 Mar 2007 03:21:24 +0000 (03:21 +0000)
committerZhou Sheng <zhousheng00@gmail.com>
Wed, 14 Mar 2007 03:21:24 +0000 (03:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35093 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index 93dde275b6cd15361c25c1788af4c8e61cf6f706..e072d966a7b315264726cdcd343a9a56c7e008a6 100644 (file)
@@ -1598,8 +1598,8 @@ bool InstCombiner::SimplifyDemandedBits(Value *V, APInt DemandedMask,
     return false;
   }
   
-  //KnownZero.clear(); 
-  //KnownOne.clear();
+  KnownZero.clear(); 
+  KnownOne.clear();
   if (!V->hasOneUse()) {    // Other users may use these bits.
     if (Depth != 0) {       // Not at the root.
       // Just compute the KnownZero/KnownOne bits to simplify things downstream.