This is an archive of the discontinued LLVM Phabricator instance.

Refactor: Simplify boolean conditional return statements in lib/Transforms/Vectorize
ClosedPublic

Authored by LegalizeAdulthood on May 25 2015, 11:46 AM.

Details

Diff Detail

Event Timeline

LegalizeAdulthood retitled this revision from to Refactor: Simplify boolean conditional return statements in lib/Transforms/Vectorize.
LegalizeAdulthood updated this object.
LegalizeAdulthood edited the test plan for this revision. (Show Details)
LegalizeAdulthood added a subscriber: Unknown Object (MLST).
mzolotukhin edited edge metadata.May 25 2015, 12:47 PM

Hi Richard,

Thanks for cleaning this up. In the first spot I prefer the original version, but the rest look fine (and if you feel strong about the first place too, I don't mind committing the change there as well).

Please mention that it's NFC in the commit message.

Thanks,
Michael

lib/Transforms/Vectorize/BBVectorize.cpp
937–938 ↗(On Diff #26468)

Here I prefer the original version, for me it seems more natural to express the logic.

lib/Transforms/Vectorize/LoopVectorize.cpp
5218–5220

LGTM.

lib/Transforms/Vectorize/SLPVectorizer.cpp
171–173

LGTM.

1703

LGTM.

mzolotukhin accepted this revision.May 25 2015, 12:47 PM
mzolotukhin edited edge metadata.
This revision is now accepted and ready to land.May 25 2015, 12:47 PM
LegalizeAdulthood edited edge metadata.

Updated to latest.

Hi Richard,

Thanks for cleaning this up. In the first spot I prefer the original version, but the rest look fine (and if you feel strong about the first place too, I don't mind committing the change there as well).

Please mention that it's NFC in the commit message.

I don't have commit access. Subsequent improvements to clang-tidy based on feedback from these reviews resulted in the one exception you noted no longer being generated as a simplification per LLVM/Clang coding preferences.

Thanks! I committed it for you in r251206.

Michael

mzolotukhin closed this revision.Oct 25 2015, 11:18 AM