This is an archive of the discontinued LLVM Phabricator instance.

Refactor: Simplify boolean conditional return statements in lib/Target/Arm
AbandonedPublic

Authored by LegalizeAdulthood on May 25 2015, 1:19 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/Target/Arm.
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/Target/ARM/ARMFrameLowering.cpp
113

This should really be aligned right after the opening parenthese on the previous line. That's really probably true of many of these patches, but it looks particularly bad here.

lib/Target/ARM/ARMISelLowering.cpp
4942

Push negate through

4966

Push negate through

10055

Push negate through and use != and &&. Align second line after the return.

lib/Target/ARM/AsmParser/ARMAsmParser.cpp
1263

Push the negate through this expression and all the similar ones below.

lib/Target/ARM/ARMFrameLowering.cpp
113

Fixed.

I forgot to run clang-format on these before posting them; I'm doing that now.

lib/Target/ARM/ARMISelLowering.cpp
4942

Fixed.

4966

Fixed.

10055

Fixed.

lib/Target/ARM/AsmParser/ARMAsmParser.cpp
1263

Fixed.

Update from comments, clang-format

Update to latest

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