[all-commits] [llvm/llvm-project] 04c3fc: [AMDGPU][Legalizer] Widen i16 G_SEXT_INREG
Pierre van Houtryve via All-commits
all-commits at lists.llvm.org
Mon Mar 17 02:28:53 PDT 2025
Branch: refs/heads/users/pierre-vh/sext-in-reg-i16-legal
Home: https://github.com/llvm/llvm-project
Commit: 04c3fc3777afb4cf31f6e8a9e8a4b7f3911ad2a0
https://github.com/llvm/llvm-project/commit/04c3fc3777afb4cf31f6e8a9e8a4b7f3911ad2a0
Author: pvanhout <pierre.vanhoutryve at amd.com>
Date: 2025-03-17 (Mon, 17 Mar 2025)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
M llvm/test/CodeGen/AMDGPU/GlobalISel/ashr.ll
M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-abs.mir
M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-ashr.mir
M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-sext-inreg.mir
M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-sext.mir
M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-smax.mir
M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-smin.mir
M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-smulh.mir
M llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.abs.ll
M llvm/test/CodeGen/AMDGPU/GlobalISel/sext_inreg.ll
Log Message:
-----------
[AMDGPU][Legalizer] Widen i16 G_SEXT_INREG
It's better to widen them to avoid it being lowered into a G_ASHR + G_SHL. With this change we just extend to i32 then trunc the result.
Commit: 197132277324f6411d6e00d4aafe0ca3d0f5f7c6
https://github.com/llvm/llvm-project/commit/197132277324f6411d6e00d4aafe0ca3d0f5f7c6
Author: pvanhout <pierre.vanhoutryve at amd.com>
Date: 2025-03-17 (Mon, 17 Mar 2025)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
Log Message:
-----------
clang-format
Compare: https://github.com/llvm/llvm-project/compare/10436c86f9d9...197132277324
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list