This change enables "abs" SDNodes selection by the node divergence.
Details
Details
Diff Detail
Diff Detail
- Repository
 - rG LLVM Github Monorepo
 
Unit Tests
Unit Tests
Paths 
  |  Differential  D119581  
[AMDGPU] Divergence-driven abs instruction selection ClosedPublic Authored by alex-t on Feb 11 2022, 1:06 PM. 
Details Summary This change enables "abs" SDNodes selection by the node divergence. 
Diff Detail 
 
Unit TestsFailed Event TimelineHerald added subscribers: kerbowa, hiraditya, t-tye and 6 others.  ·  View Herald TranscriptFeb 11 2022, 1:06 PM This revision is now accepted and ready to land.Feb 14 2022, 10:28 AM This revision was landed with ongoing or failed builds.Feb 14 2022, 10:33 AM Closed by commit rGc23198ec1348: [AMDGPU] Divergence-driven abs instruction selection (authored by alex-t).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
 
Diff 408403 llvm/lib/Target/AMDGPU/SIInstructions.td
 llvm/lib/Target/AMDGPU/SOPInstructions.td
 llvm/test/CodeGen/AMDGPU/divergence-driven-abs.ll
 
  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Don't you need to add complexity to this pattern?