]> granicus.if.org Git - llvm/commit
[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)
commitafb27048eb3dab89c0d7ebd1abe97093861f5e8d
tree656181ce13c3ff9ffbe52db7e9daa8565527bc87
parentb3d478a4bc61638d51ba3bb53d68d529ff69ed9e
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369390 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp
lib/Transforms/InstCombine/InstCombineInternal.h