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

Misha Brukman brukman at cs.uiuc.edu
Fri Jul 30 05:50:18 PDT 2004



Changes in directory llvm/lib/Transforms/Scalar:

InstructionCombining.cpp updated: 1.234 -> 1.235

---
Log message:

Fix De Morgan's name.


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

Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.234 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.235
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.234	Fri Jul 30 02:50:03 2004
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp	Fri Jul 30 07:50:08 2004
@@ -1124,7 +1124,7 @@
   if (Op0NotVal == Op1 || Op1NotVal == Op0)  // A & ~A  == ~A & A == 0
     return ReplaceInstUsesWith(I, Constant::getNullValue(I.getType()));
 
-  // (~A & ~B) == (~(A | B)) - Demorgan's Law
+  // (~A & ~B) == (~(A | B)) - De Morgan's Law
   if (Op0NotVal && Op1NotVal && isOnlyUse(Op0) && isOnlyUse(Op1)) {
     Instruction *Or = BinaryOperator::createOr(Op0NotVal, Op1NotVal,
                                                I.getName()+".demorgan");
@@ -1198,7 +1198,7 @@
       return ReplaceInstUsesWith(I, 
                                 ConstantIntegral::getAllOnesValue(I.getType()));
 
-    // (~A | ~B) == (~(A & B)) - Demorgan's Law
+    // (~A | ~B) == (~(A & B)) - De Morgan's Law
     if (A && isOnlyUse(Op0) && isOnlyUse(Op1)) {
       Value *And = InsertNewInstBefore(BinaryOperator::createAnd(A, B,
                                               I.getName()+".demorgan"), I);





More information about the llvm-commits mailing list