[all-commits] [llvm/llvm-project] 16204d: [AMDGPU] Canonicalize G_ZEXT of the shift amount i...
Pierre van Houtryve via All-commits
all-commits at lists.llvm.org
Tue Mar 18 05:08:10 PDT 2025
Branch: refs/heads/users/pierre-vh/zext-shiftamt-gisel
Home: https://github.com/llvm/llvm-project
Commit: 16204d51347ddbd7e5caff660d07069d7e441cac
https://github.com/llvm/llvm-project/commit/16204d51347ddbd7e5caff660d07069d7e441cac
Author: pvanhout <pierre.vanhoutryve at amd.com>
Date: 2025-03-17 (Mon, 17 Mar 2025)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPUCombine.td
M llvm/lib/Target/AMDGPU/AMDGPURegBankCombiner.cpp
A llvm/test/CodeGen/AMDGPU/GlobalISel/combine-shift-amount-zext.mir
Log Message:
-----------
[AMDGPU] Canonicalize G_ZEXT of the shift amount in RegBankCombiner
Canonicalize it to a G_AND instead so that ISel patterns can pick it
up and ignore it, as the shift instructions only read low bits.
G_ZEXT would be lowered to a v/s_and anyway in most cases.
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