This is an archive of the discontinued LLVM Phabricator instance.

[SLP] Return a boolean value for these static helpers. NFC.
ClosedPublic

Authored by mcrosier on Aug 29 2016, 3:04 PM.

Details

Diff Detail

Repository
rL LLVM

Event Timeline

mcrosier updated this revision to Diff 69620.Aug 29 2016, 3:04 PM
mcrosier retitled this revision from to [SLP] Return a boolean value for these static helpers. NFC..
mcrosier updated this object.
mcrosier added reviewers: mssimpso, mkuper, mzolotukhin.
mcrosier added a subscriber: llvm-commits.
mkuper edited edge metadata.Aug 29 2016, 3:11 PM

Looks like we used to use the return value of getSameBlock() before r185774.
But yeah, no reason for that anymore.

LGTM with a nit.

lib/Transforms/Vectorize/SLPVectorizer.cpp
978 ↗(On Diff #69620)

As long as you're touching this, can we just
assert((allConstant(VL) || allSameType(VL)) && "Invalid types!")
Instead?

mcrosier accepted this revision.Aug 29 2016, 3:15 PM
mcrosier added a reviewer: mcrosier.
mcrosier marked an inline comment as done.

Approving per @mkuper's comment.

lib/Transforms/Vectorize/SLPVectorizer.cpp
978 ↗(On Diff #69620)

Sure. Thanks for pointing this out.

This revision is now accepted and ready to land.Aug 29 2016, 3:15 PM
This revision was automatically updated to reflect the committed changes.
mcrosier marked an inline comment as done.