[all-commits] [llvm/llvm-project] d3d35a: [DirectX] Legalize i8 allocas (#137399)

Farzon Lotfi via All-commits all-commits at lists.llvm.org
Tue Apr 29 13:08:06 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d3d35adcd32c91e9076be6bb242dd6c82c490c4b
      https://github.com/llvm/llvm-project/commit/d3d35adcd32c91e9076be6bb242dd6c82c490c4b
  Author: Farzon Lotfi <farzonlotfi at microsoft.com>
  Date:   2025-04-29 (Tue, 29 Apr 2025)

  Changed paths:
    M llvm/lib/Target/DirectX/DXILLegalizePass.cpp
    A llvm/test/CodeGen/DirectX/legalize-i8-alloca.ll

  Log Message:
  -----------
  [DirectX] Legalize i8 allocas (#137399)

fixes #137202

investingating i8 allocas I came to find some missing instructions from
out i8 legalization around load, store, and select.
Added those three.

To do i8 allocas right though we needed to walk the uses and find the
casts.

After finding the casts I chose to pick the smallest cast as the cast to
transform to. That would then let me preserve the larger casts that come
later



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