This is an archive of the discontinued LLVM Phabricator instance.

[DAG] SelectionDAG::isSplatValue - add ISD::ABS handling
ClosedPublic

Authored by RKSimon on Mar 17 2021, 5:54 AM.

Details

Summary

Add ISD::ABS to the existing unary instructions handling for splat detection

This is similar to D83605, but doesn't appear to need to touch any of the wasm refactoring.

Diff Detail

Event Timeline

RKSimon created this revision.Mar 17 2021, 5:54 AM
RKSimon requested review of this revision.Mar 17 2021, 5:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2021, 5:54 AM
Herald added a subscriber: aheejin. · View Herald Transcript
tlively accepted this revision.Mar 17 2021, 11:24 AM

Awesome, thanks for picking this up. LGTM with the TODO restored :)

llvm/test/CodeGen/WebAssembly/simd-shift-complex-splats.ll
9–10

I think this TODO still applies because the adds haven't yet been scalarized.

This revision is now accepted and ready to land.Mar 17 2021, 11:24 AM
RKSimon added inline comments.Mar 17 2021, 3:28 PM
llvm/test/CodeGen/WebAssembly/simd-shift-complex-splats.ll
9–10

ah good point - I'll add it back in the commit - cheers

This revision was automatically updated to reflect the committed changes.