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
111–112

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
5127

Push negate through

5160

Push negate through

10449–10450

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

lib/Target/ARM/AsmParser/ARMAsmParser.cpp
1263 ↗(On Diff #26406)

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

lib/Target/ARM/ARMFrameLowering.cpp
111–112

Fixed.

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

lib/Target/ARM/ARMISelLowering.cpp
5127

Fixed.

5160

Fixed.

10449–10450

Fixed.

lib/Target/ARM/AsmParser/ARMAsmParser.cpp
1263 ↗(On Diff #26406)

Fixed.

Update from comments, clang-format

Update to latest

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