summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-02-01 20:42:02 +0000
committerDuncan Sands <baldrick@free.fr>2010-02-01 20:42:02 +0000
commitdddba06e9e9b11ecddfc44792838a5c275cfe453 (patch)
treeabaf1f1619654849077235c147b1d2ee580b7056
parent5ca7984bb4fe32623d40a7f1cd9691eb21eb3560 (diff)
downloadbcm5719-llvm-dddba06e9e9b11ecddfc44792838a5c275cfe453.tar.gz
bcm5719-llvm-dddba06e9e9b11ecddfc44792838a5c275cfe453.zip
Fix typo "of" -> "or" and change the way a line was formatted to fit
into 80 columns to match my artistic preferences. llvm-svn: 95000
-rw-r--r--llvm/lib/VMCore/ConstantFold.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/ConstantFold.cpp b/llvm/lib/VMCore/ConstantFold.cpp
index d537b273761..dd3fd52c605 100644
--- a/llvm/lib/VMCore/ConstantFold.cpp
+++ b/llvm/lib/VMCore/ConstantFold.cpp
@@ -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);
}
OpenPOWER on IntegriCloud