OSDN Git Service

[InstCombine] add helper functions for foldICmpWithConstant; NFCI
authorSanjay Patel <spatel@rotateright.com>
Tue, 16 Aug 2016 17:54:36 +0000 (17:54 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 16 Aug 2016 17:54:36 +0000 (17:54 +0000)
commit3127862b89c0674a0cc499a063ad27f007d02f23
tree47a98df6e022ee3c31851ea1a5845e9c1fd856e6
parentb4d6119096d473107f1302778f58d25055362910
[InstCombine] add helper functions for foldICmpWithConstant; NFCI

Besides breaking up a 700 line function to improve readability,
this sinks the 'FIXME: ConstantInt' check into each helper. So
now we can independently break that restriction within any of the
helper functions.

As much as possible, the code was only {cut/paste/clang-format}'ed
to minimize risk (no functional changes intended), so several more
readability improvements are still possible.

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