[llvm-commits] [llvm] r95147 - /llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
Eric Christopher
echristo at apple.com
Tue Feb 2 14:29:26 PST 2010
Author: echristo
Date: Tue Feb 2 16:29:26 2010
New Revision: 95147
URL: http://llvm.org/viewvc/llvm-project?rev=95147&view=rev
Log:
Reformat my last patch slightly.
Modified:
llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp?rev=95147&r1=95146&r2=95147&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp Tue Feb 2 16:29:26 2010
@@ -636,9 +636,9 @@
const Type *ReturnTy = CI.getType();
Value *Op1 = II->getOperand(1);
- // If we're a constant expr then we just return the number of bytes
- // left in whatever we're indexing. Since it's constant there's no
- // need for maximum or minimum bytes.
+ // If we're a constant expr then we just return the number of bytes
+ // left in whatever we're indexing. Since it's constant there's no
+ // need for maximum or minimum bytes.
if (ConstantExpr *CE = dyn_cast<ConstantExpr>(Op1)) {
// If this isn't a GEP give up.
if (CE->getOpcode() != Instruction::GetElementPtr) return 0;
@@ -665,7 +665,7 @@
ConstantInt::get(ReturnTy,
((numElems - indx) * sizeofElem)));
}
- }
+ }
// TODO: Add more types here.
}
}
More information about the llvm-commits
mailing list