[InstCombine] clean up foldICmpAddConstant(); NFCI
authorSanjay Patel <spatel@rotateright.com>
Tue, 16 Aug 2016 22:34:42 +0000 (22:34 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 16 Aug 2016 22:34:42 +0000 (22:34 +0000)
commit60ea1b43d60ff72e23bf35c50d8df29c22c5476d
tree974d81093e8e880ebfb0a6091f031825181920aa
parente0b87181cf9e1c91f0e9b5d8c2cafcbdba32f969
[InstCombine] clean up foldICmpAddConstant(); NFCI

1. Fix variable names
2. Add local variables to reduce code
3. Fix code comments
4. Add early exit to reduce indentation
5. Remove 'else' after if -> return
6. Hoist common predicate

llvm-svn: 278864
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp