This is an archive of the discontinued LLVM Phabricator instance.

Refactor: Simplify boolean conditional return statements in lib/Transforms/Scalar
AbandonedPublic

Authored by LegalizeAdulthood on May 25 2015, 11:30 AM.

Details

Summary

Use clang-tidy to simplify boolean conditional return statements

Diff Detail

Event Timeline

LegalizeAdulthood retitled this revision from to Refactor: Simplify boolean conditional return statements in lib/Transforms/Scalar.
LegalizeAdulthood updated this object.
LegalizeAdulthood edited the test plan for this revision. (Show Details)
LegalizeAdulthood added a subscriber: Unknown Object (MLST).
atrick accepted this revision.May 27 2015, 9:19 PM
atrick edited edge metadata.

I think some of the cases are less readable this way, but don't seriously object. Overall LGTM.

This revision is now accepted and ready to land.May 27 2015, 9:19 PM

Update from latest.
Update from comments.
I do not have commit access.

sanjoy added a subscriber: sanjoy.Oct 24 2015, 3:01 PM

I have only one nit inline. Once that's fixed I'm happy to check this in on your behalf.

lib/Transforms/Scalar/EarlyCSE.cpp
218

This one should be "de-morganized" to return CI && CI->onlyReadsMemory();

LegalizeAdulthood abandoned this revision.Feb 19 2016, 9:21 AM