mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
Minor code simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174005 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
73dee180c8
commit
5f1686f0b0
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user