[all-commits] [llvm/llvm-project] 76545d: [AArch64] Correctly detect X reg from W reg in isC...

David Green via All-commits all-commits at lists.llvm.org
Sat Apr 26 03:09:35 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76545d7ddf5a6a928398c1fbff496d868cb35ce1
      https://github.com/llvm/llvm-project/commit/76545d7ddf5a6a928398c1fbff496d868cb35ce1
  Author: David Green <david.green at arm.com>
  Date:   2025-04-26 (Sat, 26 Apr 2025)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
    M llvm/test/CodeGen/AArch64/copyprop.mir

  Log Message:
  -----------
  [AArch64] Correctly detect X reg from W reg in isCopyImpl (#137348)

The MachineCopyPropagation pass was incorrectly removing copy (ORRWrs)
instruction that appeared to be a nop. The instruction should not have
been marked as a copy though, the code was incorrectly assuming that
w29 - w0 + x0 == x29, but as x29 is fp it was out of order with the other
registers.

Fixes an issue reported on #129889.



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