[all-commits] [llvm/llvm-project] 98d5b2: [AMDGPU] Fold constants in 2-elt vector canonicali...

LU-JOHN via All-commits all-commits at lists.llvm.org
Sun Aug 9 23:58:32 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 98d5b27f79fc897cfc8b72a91a20890fb7443156
      https://github.com/llvm/llvm-project/commit/98d5b27f79fc897cfc8b72a91a20890fb7443156
  Author: LU-JOHN <John.Lu at amd.com>
  Date:   2026-08-10 (Mon, 10 Aug 2026)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
    A llvm/test/CodeGen/AMDGPU/fcanonicalize-v2-poison.ll

  Log Message:
  -----------
  [AMDGPU] Fold constants in 2-elt vector canonicalization (#214384)

For 2-element vectors convert:

`fcanonicalize (build_vector x, k)` -> `build_vector (fcanonicalize x),
(fcanonicalize k)`
`fcanonicalize (build_vector x, undef)` -> `build_vector (fcanonicalize
x), 0`

if fcanonicalize is Legal for a single element.  

Previously only v2f16 was transformed. Now v2f32 and v2f64 are also
transformed, but v2f16 is naturally excluded.

---------

Signed-off-by: John Lu <John.Lu at amd.com>



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