This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Don't transform bitcasts between x86_mmx and v1i64 into insertelement/extractelement
ClosedPublic

Authored by craig.topper on Nov 7 2019, 1:18 PM.

Details

Summary

x86_mmx is conceptually a vector already. Don't introduce an extra conversion between it and scalar i64.

I'm using VectorType::isValidElementType which checks for floating point, integer, and pointers to hopefully make this more readable than just blacklisting x86_mmx.

Diff Detail

Event Timeline

craig.topper created this revision.Nov 7 2019, 1:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 7 2019, 1:18 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
efriedma accepted this revision.Nov 7 2019, 1:52 PM

LGTM

This revision is now accepted and ready to land.Nov 7 2019, 1:52 PM
RKSimon accepted this revision.Nov 7 2019, 2:44 PM

LGTM

This revision was automatically updated to reflect the committed changes.