[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp

Chris Lattner sabre at nondot.org
Sun Apr 8 01:02:06 PDT 2007



Changes in directory llvm/lib/Transforms/Scalar:

InstructionCombining.cpp updated: 1.734 -> 1.735
---
Log message:

reenable this xform, whoops :)


---
Diffs of the changes:  (+2 -1)

 InstructionCombining.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.734 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.735
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.734	Sun Apr  8 02:55:22 2007
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp	Sun Apr  8 03:01:49 2007
@@ -3739,6 +3739,7 @@
             return ReplaceInstUsesWith(I, B);
         }
       }
+      V1 = 0; V2 = 0; V3 = 0;
     }
     
     // Check to see if we have any common things being and'ed.  If so, find the
@@ -3760,7 +3761,7 @@
       }
       
       // (V1 & V3)|(V2 & ~V3) -> ((V1 ^ V2) & V3) ^ V2
-      if (0 && isOnlyUse(Op0) && isOnlyUse(Op1)) {
+      if (isOnlyUse(Op0) && isOnlyUse(Op1)) {
         // Try all combination of terms to find V3 and ~V3.
         if (A->hasOneUse() && match(A, m_Not(m_Value(V3)))) {
           if (V3 == B)






More information about the llvm-commits mailing list