[all-commits] [llvm/llvm-project] 19db96: Mips/GlobalISel: Fix adding $gp to calls as a def ...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Wed Sep 30 05:04:42 PDT 2026
Branch: refs/heads/users/arsenm/mips/gisel-call-gp-implicit-use
Home: https://github.com/llvm/llvm-project
Commit: 19db961c7f0b083be2aa36881f1a9d733d678644
https://github.com/llvm/llvm-project/commit/19db961c7f0b083be2aa36881f1a9d733d678644
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2026-09-30 (Wed, 30 Sep 2026)
Changed paths:
M llvm/lib/Target/Mips/MipsCallLowering.cpp
M llvm/test/CodeGen/Mips/GlobalISel/irtranslator/call.ll
M llvm/test/CodeGen/Mips/GlobalISel/irtranslator/global_address_pic.ll
Log Message:
-----------
Mips/GlobalISel: Fix adding $gp to calls as a def instead of a use
A PIC call needs $gp to point at the GOT for the lazy binding stub.
SelectionDAG adds it as an ordinary argument register. GlobalISel
instead added it as an implicit def, which killed the $gp copy set up
right before the call.
Co-authored-by: Claude Opus 5 <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