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.
Paths
| Differential D98778
[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 TimelineHerald added subscribers: sunfish, hiraditya, jgravelle-google and 2 others. · View Herald TranscriptMar 17 2021, 5:54 AM Comment Actions Awesome, thanks for picking this up. LGTM with the TODO restored :)
This revision is now accepted and ready to land.Mar 17 2021, 11:24 AM
Closed by commit rGb1afa187c8ee: [DAG] SelectionDAG::isSplatValue - add ISD::ABS handling (authored by RKSimon). · Explain WhyMar 18 2021, 3:28 AM This revision was automatically updated to reflect the committed changes. RKSimon mentioned this in D103755: [DAG] Fold neg(bvsplat(neg(x)) -> bvsplat(x).Jun 5 2021, 11:55 AM
Revision Contents
Diff 331505 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/test/CodeGen/WebAssembly/simd-shift-complex-splats.ll
|
I think this TODO still applies because the adds haven't yet been scalarized.