[llvm] r174005 - Minor code simplification.
Dan Gohman
dan433584 at gmail.com
Wed Jan 30 16:32:12 PST 2013
Author: djg
Date: Wed Jan 30 18:32:11 2013
New Revision: 174005
URL: http://llvm.org/viewvc/llvm-project?rev=174005&view=rev
Log:
Minor code simplification.
Modified:
llvm/trunk/lib/Analysis/InstructionSimplify.cpp
Modified: llvm/trunk/lib/Analysis/InstructionSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/InstructionSimplify.cpp?rev=174005&r1=174004&r2=174005&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/InstructionSimplify.cpp (original)
+++ llvm/trunk/lib/Analysis/InstructionSimplify.cpp Wed Jan 30 18:32:11 2013
@@ -2459,7 +2459,7 @@ static Value *SimplifyICmpInst(unsigned
// Simplify comparisons of related pointers using a powerful, recursive
// GEP-walk when we have target data available..
- if (Q.TD && LHS->getType()->isPointerTy() && RHS->getType()->isPointerTy())
+ if (Q.TD && LHS->getType()->isPointerTy())
if (Constant *C = computePointerICmp(*Q.TD, Pred, LHS, RHS))
return C;
More information about the llvm-commits
mailing list