This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Scalarize extract_vector_elt of binops
ClosedPublic

Authored by tlively on Jul 8 2021, 11:14 AM.

Details

Summary

Override the shouldScalarizeBinop target lowering hook using the same
implementation used in the x86 backend. This causes extract_vector_elts of
vector binary ops to be scalarized if the scalarized version would be supported.

Diff Detail

Event Timeline

tlively created this revision.Jul 8 2021, 11:14 AM
tlively requested review of this revision.Jul 8 2021, 11:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 8 2021, 11:14 AM
aheejin accepted this revision.Jul 8 2021, 1:34 PM

Nice!

This revision is now accepted and ready to land.Jul 8 2021, 1:34 PM
This revision was automatically updated to reflect the committed changes.