This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Expand operations not supported by SIMD
ClosedPublic

Authored by tlively on Mar 1 2019, 5:08 PM.

Details

Summary

This prevents crashes in instruction selection when these operations
are used. The tests check that the scalar version of the instruction
is used where applicable, although some expansions do not use the
scalar version.

Diff Detail

Repository
rL LLVM

Event Timeline

tlively created this revision.Mar 1 2019, 5:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2019, 5:08 PM
aheejin accepted this revision.Mar 1 2019, 5:14 PM

The tests check that the scalar version of the instruction

is used where applicable, although some expansions do not use the
scalar version.

By skimming the tests, all are using their respective scalar versions.. which one does not use its scalar version and what does it use instead? Maybe worth one-line comment for that test (I haven't found which one)

This revision is now accepted and ready to land.Mar 1 2019, 5:14 PM
tlively updated this revision to Diff 189024.Mar 1 2019, 7:08 PM
  • Add comments pointing out expansions that don't use scalar equivalents
aheejin added a comment.EditedMar 1 2019, 7:19 PM

Oh sorry, I thought they used other SIMD instructions, which was the reason I suggested comments... I guess they are not very necessary after all. 'Expand' means not using SIMD. Sorry :(

tlively updated this revision to Diff 189025.Mar 1 2019, 7:28 PM
  • Bug fixes
This revision was automatically updated to reflect the committed changes.