Fix typo "of" -> "or" and change the way a line was formatted to fit
authorDuncan Sands <baldrick@free.fr>
Mon, 1 Feb 2010 20:42:02 +0000 (20:42 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 1 Feb 2010 20:42:02 +0000 (20:42 +0000)
into 80 columns to match my artistic preferences.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95000 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/ConstantFold.cpp

index d537b273761c9e998c0b96f18faf55c8ba70077b..dd3fd52c605f76e3f5443bcecd2f89f08cb9933c 100644 (file)
@@ -2018,11 +2018,11 @@ Constant *llvm::ConstantFoldCompareInstruction(LLVMContext &Context,
 
     // 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);
       }