diff options
author | Craig Topper <craig.topper@intel.com> | 2017-08-23 05:46:07 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2017-08-23 05:46:07 +0000 |
commit | 524c44f74e3a293a14cd5480c1182ec11522773a (patch) | |
tree | afacf8b6605cc88dd05682b66c328f216371093c /llvm/lib/Transforms/InstCombine/InstCombineInternal.h | |
parent | c4449df1b0ad3a02fe1a90bdeb564897236dc999 (diff) | |
download | bcm5719-llvm-524c44f74e3a293a14cd5480c1182ec11522773a.tar.gz bcm5719-llvm-524c44f74e3a293a14cd5480c1182ec11522773a.zip |
[InstCombine] Remove an unnecessary dyn_cast to Instruction and a switch over two opcodes. Just dyn_cast to the specific instruction classes individually. NFC
Change the helper methods to take the more specific class as well.
llvm-svn: 311527
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineInternal.h')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineInternal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h index 65a08cefbf9..6dcfade84a6 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h +++ b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h @@ -687,9 +687,9 @@ private: Instruction *foldICmpBinOp(ICmpInst &Cmp); Instruction *foldICmpEquality(ICmpInst &Cmp); - Instruction *foldICmpSelectConstant(ICmpInst &Cmp, Instruction *Select, + Instruction *foldICmpSelectConstant(ICmpInst &Cmp, SelectInst *Select, ConstantInt *C); - Instruction *foldICmpTruncConstant(ICmpInst &Cmp, Instruction *Trunc, + Instruction *foldICmpTruncConstant(ICmpInst &Cmp, TruncInst *Trunc, const APInt *C); Instruction *foldICmpAndConstant(ICmpInst &Cmp, BinaryOperator *And, const APInt *C); |