[all-commits] [llvm/llvm-project] bb7e55: [AMDGPU] Correct bitshift legality transformation ...

zGoldthorpe via All-commits all-commits at lists.llvm.org
Fri May 23 01:56:42 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bb7e5597407884dbbd1d45570fa73dea168545f5
      https://github.com/llvm/llvm-project/commit/bb7e5597407884dbbd1d45570fa73dea168545f5
  Author: zGoldthorpe <Zach.Goldthorpe at amd.com>
  Date:   2025-05-23 (Fri, 23 May 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/ashr.ll

  Log Message:
  -----------
  [AMDGPU] Correct bitshift legality transformation for small vectors (#140940)

Fix for a bug found by the AMD fuzzing project.

The legaliser would originally try to widen a small vector such as `<4 x
i1>` to a single `i16` during the legalisation of bitshifts, as it was
not originally written with consideration for vector operands. This
patch simply adds a guard to prohibit this transformation and allow
other legalisation transformations to step in.



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