projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73dee18
)
Minor code simplification.
author
Dan Gohman
<dan433584@gmail.com>
Thu, 31 Jan 2013 00:32:11 +0000
(
00:32
+0000)
committer
Dan Gohman
<dan433584@gmail.com>
Thu, 31 Jan 2013 00:32:11 +0000
(
00:32
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174005
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/InstructionSimplify.cpp
b/lib/Analysis/InstructionSimplify.cpp
index bc51457406614b81b0806324299f09622cad132a..9f2aa59863f2eacca8232940ba600ec927517a39 100644
(file)
--- a/
lib/Analysis/InstructionSimplify.cpp
+++ b/
lib/Analysis/InstructionSimplify.cpp
@@
-2459,7
+2459,7
@@
static Value *SimplifyICmpInst(unsigned Predicate, Value *LHS, Value *RHS,
// 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;