[llvm-commits] [llvm] r40133 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp

Devang Patel dpatel at apple.com
Fri Jul 20 17:34:29 PDT 2007


Author: dpatel
Date: Fri Jul 20 19:34:29 2007
New Revision: 40133

URL: http://llvm.org/viewvc/llvm-project?rev=40133&view=rev
Log:
Apply temporary work around to fix llvm mis-compilation
reported in PR 1556.

Modified:
    llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp?rev=40133&r1=40132&r2=40133&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp Fri Jul 20 19:34:29 2007
@@ -3872,7 +3872,9 @@
       }
       
       // (V1 & V3)|(V2 & ~V3) -> ((V1 ^ V2) & V3) ^ V2
-      if (isOnlyUse(Op0) && isOnlyUse(Op1)) {
+      // Disable this transformations temporarily. This causes
+      // mis-compilation when V2 is undefined.
+      if (0 && 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