[all-commits] [llvm/llvm-project] fea1f1: [AArch64][PAC][GISel] Add missing clobbering info ...

Anatoly Trosinenko via All-commits all-commits at lists.llvm.org
Mon Sep 8 04:52:22 PDT 2025


  Branch: refs/heads/users/atrosinenko/gisel-loadgotauth
  Home:   https://github.com/llvm/llvm-project
  Commit: fea1f13eadfe130627e8abe1c3eb862cca52fc0f
      https://github.com/llvm/llvm-project/commit/fea1f13eadfe130627e8abe1c3eb862cca52fc0f
  Author: Anatoly Trosinenko <atrosinenko at accesssoftek.com>
  Date:   2025-09-08 (Mon, 08 Sep 2025)

  Changed paths:
    M llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
    A llvm/test/CodeGen/AArch64/GlobalISel/ptrauth-elf-got.mir

  Log Message:
  -----------
  [AArch64][PAC][GISel] Add missing clobbering info to LOADgotAUTH

When LOADgotAUTH is selected by GlobalISel, the existing MachineInstr is
updated in-place instead of constructing a fresh instance by calling
MIB.buildInstr(). This way, implicit-def operands have to be added
manually for register allocator to take them into account.

This patch fixes miscompilation possibility observed when compiling
with GlobalISel enabled or at -O0 optimization level.



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