[all-commits] [llvm/llvm-project] cdfba0: [AMDGPU][Legalizer] Widen i16 G_SEXT_INREG
Pierre van Houtryve via All-commits
all-commits at lists.llvm.org
Mon Mar 17 02:14:57 PDT 2025
Branch: refs/heads/users/pierre-vh/sext-in-reg-i16-legal
Home: https://github.com/llvm/llvm-project
Commit: cdfba0ea7ab0fcb60d632a25433b18b421022c25
https://github.com/llvm/llvm-project/commit/cdfba0ea7ab0fcb60d632a25433b18b421022c25
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: 10436c86f9d9517cd5d57942a43b2621d0be0fb5
https://github.com/llvm/llvm-project/commit/10436c86f9d9517cd5d57942a43b2621d0be0fb5
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/c4187f7cce37...10436c86f9d9
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