[all-commits] [llvm/llvm-project] 33de67: PPC: Fold 64-bit zero-extending word load feeding ...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Sun Oct 4 01:05:10 PDT 2026


  Branch: refs/heads/users/arsenm/ppc/mi-peehole-missed-subregister-fold
  Home:   https://github.com/llvm/llvm-project
  Commit: 33de671457bc53f6a0cd8d666897cdbb8e40b628
      https://github.com/llvm/llvm-project/commit/33de671457bc53f6a0cd8d666897cdbb8e40b628
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-10-04 (Sun, 04 Oct 2026)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
    M llvm/test/CodeGen/PowerPC/peephole-elim-extsw-subreg-input.mir

  Log Message:
  -----------
  PPC: Fold 64-bit zero-extending word load feeding extsw subregister

A gprc LWZ/LWZX feeding EXTSW_32_64 is rewritten into a sign-extending
LWA/LWAX load. Extend the same fold to the 64-bit zero-extending word
loads LWZ8/LWZX8 when the EXTSW_32_64 reads their sub_32 subregister,
producing a single LWA/LWAX instead of a redundant lwz+extsw pair.

Co-authored-by: Claude (Claude Opus 4.8, claude-opus-4-8) <noreply at anthropic.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