[all-commits] [llvm/llvm-project] 674574: Promote 32bit pseudo instr that infer extsw remova...

zhijian lin via All-commits all-commits at lists.llvm.org
Thu Oct 31 12:49:57 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 674574d25cc35010dbb0b12b01e8beeaddf20a3f
      https://github.com/llvm/llvm-project/commit/674574d25cc35010dbb0b12b01e8beeaddf20a3f
  Author: zhijian lin <zhijian at ca.ibm.com>
  Date:   2024-10-31 (Thu, 31 Oct 2024)

  Changed paths:
    M llvm/lib/Target/PowerPC/P10InstrResources.td
    M llvm/lib/Target/PowerPC/P9InstrResources.td
    M llvm/lib/Target/PowerPC/PPC.td
    M llvm/lib/Target/PowerPC/PPCInstr64Bit.td
    M llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
    M llvm/lib/Target/PowerPC/PPCInstrInfo.h
    M llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
    M llvm/lib/Target/PowerPC/PPCScheduleP7.td
    M llvm/test/CodeGen/PowerPC/convert-rr-to-ri-instrs-out-of-range.mir
    M llvm/test/CodeGen/PowerPC/convert-rr-to-ri-instrs.mir
    M llvm/test/CodeGen/PowerPC/peephole-replaceInstr-after-eliminate-extsw.mir
    M llvm/test/CodeGen/PowerPC/sext_elimination.mir
    M llvm/test/CodeGen/PowerPC/stack-restore-with-setjmp.ll

  Log Message:
  -----------
  Promote 32bit pseudo instr that infer extsw removal to 64bit in PPCMIPeephole (#85451)

Fixes:   https://github.com/llvm/llvm-project/issues/71030

Bug only happens in 64bit involving spills. Since we don't know when the
spill will happen, all instructions in the chain used to deduce sign
extension for eliminating 'extsw' will need to be promoted to 64-bit
pseudo instructions.

The following instruction will promoted in PPCMIPeepholes: EXTSH, LHA,
ISEL to EXTSH8, LHA8, ISEL8



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