[llvm-commits] [llvm] r95000 - /llvm/trunk/lib/VMCore/ConstantFold.cpp

Duncan Sands baldrick at free.fr
Mon Feb 1 12:42:03 PST 2010


Author: baldrick
Date: Mon Feb  1 14:42:02 2010
New Revision: 95000

URL: http://llvm.org/viewvc/llvm-project?rev=95000&view=rev
Log:
Fix typo "of" -> "or" and change the way a line was formatted to fit
into 80 columns to match my artistic preferences.

Modified:
    llvm/trunk/lib/VMCore/ConstantFold.cpp

Modified: llvm/trunk/lib/VMCore/ConstantFold.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/ConstantFold.cpp?rev=95000&r1=94999&r2=95000&view=diff

==============================================================================
--- llvm/trunk/lib/VMCore/ConstantFold.cpp (original)
+++ llvm/trunk/lib/VMCore/ConstantFold.cpp Mon Feb  1 14:42:02 2010
@@ -2018,11 +2018,11 @@
 
     // If the right hand side is a bitcast, try using its inverse to simplify
     // it by moving it to the left hand side.  We can't do this if it would turn
-    // a vector compare into scalar compare of visa versa.
+    // a vector compare into a scalar compare or visa versa.
     if (ConstantExpr *CE2 = dyn_cast<ConstantExpr>(C2)) {
       Constant *CE2Op0 = CE2->getOperand(0);
       if (CE2->getOpcode() == Instruction::BitCast &&
-          isa<VectorType>(CE2->getType()) ==isa<VectorType>(CE2Op0->getType())){
+          isa<VectorType>(CE2->getType())==isa<VectorType>(CE2Op0->getType())) {
         Constant *Inverse = ConstantExpr::getBitCast(C1, CE2Op0->getType());
         return ConstantExpr::getICmp(pred, Inverse, CE2Op0);
       }





More information about the llvm-commits mailing list