diff options
author | Sanjay Patel <spatel@rotateright.com> | 2019-08-20 14:56:44 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2019-08-20 14:56:44 +0000 |
commit | a90ee0eeb6abb32a641caa56976f4cc2f7d27975 (patch) | |
tree | 1cd473d0e3ce7fc85ef793168b527a0a75ee4e8a /llvm/lib/Transforms/InstCombine/InstCombineInternal.h | |
parent | cda334ba5417d7702be755adc2f8414c877f0482 (diff) | |
download | bcm5719-llvm-a90ee0eeb6abb32a641caa56976f4cc2f7d27975.tar.gz bcm5719-llvm-a90ee0eeb6abb32a641caa56976f4cc2f7d27975.zip |
[InstCombine] improve readability for icmp with cast folds; NFC
1. Update function name and stale code comments.
2. Use variable names that are less ambiguous.
3. Move operand checks into the function as early exits.
llvm-svn: 369390
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineInternal.h')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineInternal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h index f8225b82ed1..71883b5692d 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h +++ b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h @@ -861,7 +861,7 @@ private: Constant *RHSC); Instruction *foldICmpAddOpConst(Value *X, const APInt &C, ICmpInst::Predicate Pred); - Instruction *foldICmpWithCastAndCast(ICmpInst &ICI); + Instruction *foldICmpWithCastOp(ICmpInst &ICI); Instruction *foldICmpUsingKnownBits(ICmpInst &Cmp); Instruction *foldICmpWithDominatingICmp(ICmpInst &Cmp); |