diff options
| author | Craig Topper <craig.topper@gmail.com> | 2017-05-26 19:04:02 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2017-05-26 19:04:02 +0000 |
| commit | 9bce1ad2327f6cd680fb860232452b5dd55ea623 (patch) | |
| tree | 91db0861719d4252f9197619c516c307e3dc025b /llvm/lib/Analysis | |
| parent | c8bebb1e84038e3c4131ab702a083891cfd1599d (diff) | |
| download | bcm5719-llvm-9bce1ad2327f6cd680fb860232452b5dd55ea623.tar.gz bcm5719-llvm-9bce1ad2327f6cd680fb860232452b5dd55ea623.zip | |
[InstSimplify] Move a variable declaration to make simplifyAndOfICmps look more like simplifyOrOfICmps. NFC
llvm-svn: 304023
Diffstat (limited to 'llvm/lib/Analysis')
| -rw-r--r-- | llvm/lib/Analysis/InstructionSimplify.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/InstructionSimplify.cpp b/llvm/lib/Analysis/InstructionSimplify.cpp index 38a9b22c102..6033d3fe500 100644 --- a/llvm/lib/Analysis/InstructionSimplify.cpp +++ b/llvm/lib/Analysis/InstructionSimplify.cpp @@ -1567,7 +1567,6 @@ static Value *simplifyAndOfICmps(ICmpInst *Op0, ICmpInst *Op1) { return X; // (icmp (add V, C0), C1) & (icmp V, C0) - Type *ITy = Op0->getType(); ICmpInst::Predicate Pred0, Pred1; const APInt *C0, *C1; Value *V; @@ -1581,6 +1580,7 @@ static Value *simplifyAndOfICmps(ICmpInst *Op0, ICmpInst *Op1) { if (AddInst->getOperand(1) != Op1->getOperand(1)) return nullptr; + Type *ITy = Op0->getType(); bool isNSW = AddInst->hasNoSignedWrap(); bool isNUW = AddInst->hasNoUnsignedWrap(); |

