This is an archive of the discontinued LLVM Phabricator instance.

[LoadStoreVectorizer] Differentiate between <1 x T> and T
ClosedPublic

Authored by svenvh on Mar 2 2018, 7:19 AM.

Details

Summary

The LoadStoreVectorizer thought that <1 x T> and T were the same types
when merging stores, leading to a crash later.

Patch by Erik Hogeman.

Diff Detail

Repository
rL LLVM

Event Timeline

svenvh created this revision.Mar 2 2018, 7:19 AM
arsenm requested changes to this revision.Mar 2 2018, 7:41 AM
arsenm added inline comments.
test/Transforms/LoadStoreVectorizer/X86/vector-scalar.ll
6 ↗(On Diff #136747)

Use positive checks instead

This revision now requires changes to proceed.Mar 2 2018, 7:41 AM
svenvh updated this revision to Diff 137155.Mar 6 2018, 4:32 AM

Updated test to use positive checks.

arsenm accepted this revision.Mar 6 2018, 8:03 AM

LGTM

This revision is now accepted and ready to land.Mar 6 2018, 8:03 AM
This revision was automatically updated to reflect the committed changes.