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 ↗(On Diff #26416)

Push the negate through

lib/Transforms/InstCombine/InstCombineCompares.cpp
2673

Push the negate through.

lib/Transforms/InstCombine/InstructionCombining.cpp
102

Push the negate through

994

Push the negate through

lib/Transforms/InstCombine/InstCombineCasts.cpp
281 ↗(On Diff #26416)

Fixed.

lib/Transforms/InstCombine/InstCombineCompares.cpp
2673

Fixed.

lib/Transforms/InstCombine/InstructionCombining.cpp
102

FIxed.

994

Fixed.

Update from comments

Update to latest

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