This is an archive of the discontinued LLVM Phabricator instance.

[SLP] Remove seemingly bogus assert
ClosedPublic

Authored by mkuper on Jan 10 2017, 4:01 PM.

Details

Summary

The assert seems bogus - it's perfectly legal for the vectorized subtrees to be equal even if the original scalar values aren't, if the original scalars happen to be equivalent.

I don't really see what we'd want to assert on here, so I'm nuking it. If you have alternative suggestions, let me know.

This fixes PR31599.

Diff Detail

Event Timeline

mkuper updated this revision to Diff 83890.Jan 10 2017, 4:01 PM
mkuper retitled this revision from to [SLP] Remove seemingly bogus assert.
mkuper updated this object.
mkuper added reviewers: ABataev, mssimpso, delena.
mkuper added a subscriber: llvm-commits.
mssimpso accepted this revision.Jan 11 2017, 8:07 AM
mssimpso edited edge metadata.

LGTM as well. I think this assert may have made sense before all the on-the-fly simplification was added (canReuseExtract, etc.).

This revision is now accepted and ready to land.Jan 11 2017, 8:07 AM
This revision was automatically updated to reflect the committed changes.