This is an archive of the discontinued LLVM Phabricator instance.

Refactor: Simplify boolean conditional return statements in lib/Target/AArch64
ClosedPublic

Authored by LegalizeAdulthood on May 25 2015, 1:13 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/AArch64.
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/AArch64/AArch64AddressTypePromotion.cpp
210

Push negate through

lib/Target/AArch64/AArch64FrameLowering.cpp
133

Push negate through

541–542

Push negate through

lib/Target/AArch64/AArch64PromoteConstant.cpp
288

Push negate through

lib/Target/AArch64/AArch64AddressTypePromotion.cpp
210

Fixed.

lib/Target/AArch64/AArch64FrameLowering.cpp
133

Fixed.

541–542

Fixed.

lib/Target/AArch64/AArch64PromoteConstant.cpp
288

Fixed.

Update from comments, clang-format

HaoLiu accepted this revision.May 27 2015, 7:01 PM
HaoLiu edited edge metadata.

Hi Richard,

I think it's good refactor. LGTM.

Thanks,
-Hao

This revision is now accepted and ready to land.May 27 2015, 7:01 PM
mcrosier resigned from this revision.Aug 24 2015, 12:51 PM
mcrosier removed a reviewer: mcrosier.

I do not have commit access, so someone else will need to commit this. Let me know if it needs rebasing.

Patch by Richard Thomson.

I do not have commit access, so someone else will need to commit this. Let me know if it needs rebasing.

Patch by Richard Thomson.

echristo edited edge metadata.Feb 19 2016, 4:27 PM

It does need rebasing if you wouldn't mind. I'll commit it after.

Thanks!

-eric

LegalizeAdulthood edited edge metadata.

make check-all passes in release

echristo closed this revision.Feb 29 2016, 2:55 PM

Committed thusly:

dzur:~/sources/llvm> git svn dcommit
Committing to https://llvm.org/svn/llvm-project/llvm/trunk ...
M lib/Target/AArch64/AArch64AddressTypePromotion.cpp
M lib/Target/AArch64/AArch64FastISel.cpp
M lib/Target/AArch64/AArch64FrameLowering.cpp
M lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
M lib/Target/AArch64/AArch64ISelLowering.cpp
M lib/Target/AArch64/AArch64PromoteConstant.cpp
M lib/Target/AArch64/AArch64RegisterInfo.cpp
Committed r262266