This is an archive of the discontinued LLVM Phabricator instance.

[Headers] Improve codegen for _mm_slli_epi32.
AbandonedPublic

Authored by Bigcheese on Apr 11 2014, 4:56 AM.

Details

Reviewers
None
Summary

This generates vector llvm ir for _mm_slli_epi32 to allow
further optimization.

Diff Detail

Event Timeline

Bigcheese abandoned this revision.Apr 11 2014, 5:34 AM

Actually, this is wrong. _mm_slli_epi32 requires that if count is > than 31, the result is 0. The << operator gives it undefined behavior.

This isn't really in my area of expertise/ownership, so I'll leave it to someone else to review.

Bigcheese reclaimed this revision.Apr 11 2014, 11:22 AM
Bigcheese abandoned this revision.Nov 14 2019, 1:07 PM