This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by LegalizeAdulthood on May 25 2015, 1:52 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/InstCombine.
LegalizeAdulthood updated this object.
LegalizeAdulthood edited the test plan for this revision. (Show Details)
LegalizeAdulthood added a subscriber: Unknown Object (MLST).
craig.topper added inline comments.
lib/Transforms/InstCombine/InstCombineCasts.cpp
281

Push the negate through

lib/Transforms/InstCombine/InstCombineCompares.cpp
2559

Push the negate through.

lib/Transforms/InstCombine/InstructionCombining.cpp
100

Push the negate through

959

Push the negate through

lib/Transforms/InstCombine/InstCombineCasts.cpp
281

Fixed.

lib/Transforms/InstCombine/InstCombineCompares.cpp
2559

Fixed.

lib/Transforms/InstCombine/InstructionCombining.cpp
100

FIxed.

959

Fixed.

Update from comments

Update to latest

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