This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Don't assume that zext/sext result is i32/i64 in fast isel (PR41841)
ClosedPublic

Authored by nikic on May 11 2019, 4:46 AM.

Diff Detail

Event Timeline

nikic created this revision.May 11 2019, 4:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 11 2019, 4:46 AM
tlively accepted this revision.May 12 2019, 4:56 PM

Thanks for fixing this! I have a few comments on the test style, but otherwise LGTM.

llvm/test/CodeGen/WebAssembly/PR41841.ll
2

We usually pass -asm-verbose=false in our tests to avoid having to match uninteresting output.

19

Please move the CHECK lines to be right before the top of the function

37

Please standardize the whitespace to make the start of the instructions line up.

This revision is now accepted and ready to land.May 12 2019, 4:56 PM
nikic updated this revision to Diff 199209.May 13 2019, 12:39 AM

Add -asm-verbose=false, move CHECK lines, remove tabs.

Looks good. Feel free to commit yourself or lmk if you want me to commit it for you.

This revision was automatically updated to reflect the committed changes.