SALU min/max s32 instructions exist so use them. This means that
regbankselect can handle min/max much like add/sub/mul/shifts.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D96047
[AMDGPU][GlobalISel] Use scalar min/max instructions ClosedPublic Authored by foad on Feb 4 2021, 8:35 AM.
Details Summary SALU min/max s32 instructions exist so use them. This means that
Diff Detail
Event TimelineHerald added subscribers: kerbowa, hiraditya, t-tye and 7 others. · View Herald TranscriptFeb 4 2021, 8:35 AM foad added a child revision: D96048: [AMDGPU][GlobalISel] Fix v2s16 right shifts.Feb 4 2021, 8:35 AM This revision is now accepted and ready to land.Feb 4 2021, 8:53 AM This revision was landed with ongoing or failed builds.Feb 4 2021, 9:04 AM Closed by commit rGb3bb5c3efc97: [AMDGPU][GlobalISel] Use scalar min/max instructions (authored by foad). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 321472 llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.h
llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-smax.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-smin.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-umax.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-umin.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/saddsat.ll
llvm/test/CodeGen/AMDGPU/GlobalISel/ssubsat.ll
llvm/test/CodeGen/AMDGPU/GlobalISel/uaddsat.ll
llvm/test/CodeGen/AMDGPU/GlobalISel/usubsat.ll
|