This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by LegalizeAdulthood on May 25 2015, 11:36 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/Util.
LegalizeAdulthood updated this object.
LegalizeAdulthood edited the test plan for this revision. (Show Details)
LegalizeAdulthood added a subscriber: Unknown Object (MLST).

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

alexfh added a subscriber: alexfh.Dec 28 2015, 7:36 AM
alexfh added inline comments.
lib/Transforms/Utils/Local.cpp
298

Please remove the braces here and in the next if as well.

lib/Transforms/Utils/SimplifyCFG.cpp
3663

Push the negation through (should the check be taught to do this?).

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