This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Explicitly add {z,s}ext so extends are selected
ClosedPublic

Authored by luke on Jan 3 2023, 12:14 PM.

Details

Summary

During DAG legalization, {u,s}itofp instructions on v2i8, v2i16, v4i8
and v4i16 types ended up being legalized into scalar instructions, when
they could just be extended to v2i32/v4i32 instead.

Fixes https://github.com/llvm/llvm-project/issues/57182

Diff Detail

Event Timeline

luke created this revision.Jan 3 2023, 12:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 3 2023, 12:14 PM
luke requested review of this revision.Jan 3 2023, 12:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 3 2023, 12:14 PM
tlively accepted this revision.Jan 3 2023, 12:44 PM

Nice!

This revision is now accepted and ready to land.Jan 3 2023, 12:44 PM
luke updated this revision to Diff 486080.Jan 3 2023, 2:01 PM

Remove accidental changes

This revision was automatically updated to reflect the committed changes.