[InstCombine] improve readability for icmp with cast folds; NFC
authorSanjay Patel <spatel@rotateright.com>
Tue, 20 Aug 2019 14:56:44 +0000 (14:56 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 20 Aug 2019 14:56:44 +0000 (14:56 +0000)
commita90ee0eeb6abb32a641caa56976f4cc2f7d27975
tree1cd473d0e3ce7fc85ef793168b527a0a75ee4e8a
parentcda334ba5417d7702be755adc2f8414c877f0482
[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
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/lib/Transforms/InstCombine/InstCombineInternal.h