This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] SIMD integer abs instructions
ClosedPublic

Authored by tlively on Mar 18 2020, 6:16 PM.

Details

Summary

These were merged to the SIMD proposal in
https://github.com/WebAssembly/simd/pull/128.

Depends on D76397 to avoid merge conflicts.

Diff Detail

Event Timeline

tlively created this revision.Mar 18 2020, 6:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 18 2020, 6:16 PM
aheejin accepted this revision.Mar 19 2020, 3:39 AM
aheejin added inline comments.
llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
130

Out of curiosity, before this patch, how was ISD::ABS lowered, given that there's no mention of lowering ABS in this file? If it was expanded, wasn't something like setOperationAction(ISD::ABS, T, Expand) supposed to be in this file?

This revision is now accepted and ready to land.Mar 19 2020, 3:39 AM
tlively marked an inline comment as done.Mar 19 2020, 5:28 PM
tlively added inline comments.
llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
130

ABS is one of the nodes that are expanded by default in TargetLoweringBase: https://github.com/llvm/llvm-project/blob/master/llvm/lib/CodeGen/TargetLoweringBase.cpp#L638-L666

This revision was automatically updated to reflect the committed changes.