[all-commits] [llvm/llvm-project] 401452: [AMDGPU] Optimize i64 uitofp for unsigned byte values

Harrison Hao via All-commits all-commits at lists.llvm.org
Mon Sep 14 20:01:12 PDT 2026


  Branch: refs/heads/users/harrisonGPU/optimize-uitofp-ubyte
  Home:   https://github.com/llvm/llvm-project
  Commit: 401452ffc2b29104685e3a972da417aa04901d18
      https://github.com/llvm/llvm-project/commit/401452ffc2b29104685e3a972da417aa04901d18
  Author: Harrison Hao <tsworld1314 at gmail.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUISelLowering.h
    M llvm/test/CodeGen/AMDGPU/cvt_f32_ubyte.ll

  Log Message:
  -----------
  [AMDGPU] Optimize i64 uitofp for unsigned byte values

Use v_cvt_f32_ubyte0 when the i64 source is known to fit in an unsigned
byte.
For example:

  uitofp (and i64 %x, 255) to float

This avoids the generic i64 to f32 expansion.


  Commit: 3e8503a6f8551c9da7177fd8b63ff4fe103a756d
      https://github.com/llvm/llvm-project/commit/3e8503a6f8551c9da7177fd8b63ff4fe103a756d
  Author: Harrison Hao <tsworld1314 at gmail.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUISelLowering.h
    M llvm/test/CodeGen/AMDGPU/cvt_f32_ubyte.ll
    M llvm/test/CodeGen/AMDGPU/fold-int-pow2-with-fmul-or-fdiv.ll
    M llvm/test/CodeGen/X86/fold-int-pow2-with-fmul-or-fdiv.ll

  Log Message:
  -----------
  [DAGCombiner] Fold (uint_to_fp x) -> (uint_to_fp (trunc x))


  Commit: 9a7179ec4b7bd45f1a63f944ecaff067dccff255
      https://github.com/llvm/llvm-project/commit/9a7179ec4b7bd45f1a63f944ecaff067dccff255
  Author: Harrison Hao <tsworld1314 at gmail.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M llvm/test/CodeGen/AArch64/fold-int-pow2-with-fmul-or-fdiv.ll

  Log Message:
  -----------
  Fix lit test


  Commit: 34f4421660c770641a45e2b4bd7732b159a4c4a8
      https://github.com/llvm/llvm-project/commit/34f4421660c770641a45e2b4bd7732b159a4c4a8
  Author: Harrison Hao <tsworld1314 at gmail.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

  Log Message:
  -----------
  Update


  Commit: 047ea07767c3207a753847dd0884c69f9c7697f7
      https://github.com/llvm/llvm-project/commit/047ea07767c3207a753847dd0884c69f9c7697f7
  Author: Harrison Hao <tsworld1314 at gmail.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M llvm/test/CodeGen/AMDGPU/int_to_fp_narrow_i64.ll

  Log Message:
  -----------
  Fix lit test failure


Compare: https://github.com/llvm/llvm-project/compare/6f8e9fd47fc9...047ea07767c3

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