[all-commits] [llvm/llvm-project] 103811: [RISCV, GISel] Unconditionally use MO_PLT for calls...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Nov 15 15:19:01 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 103811a27abcbcc6792c88dcdd30034e5cc8adc3
      https://github.com/llvm/llvm-project/commit/103811a27abcbcc6792c88dcdd30034e5cc8adc3
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-11-15 (Wed, 15 Nov 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/GISel/RISCVCallLowering.cpp
    M llvm/test/CodeGen/RISCV/GlobalISel/irtranslator/calls.ll

  Log Message:
  -----------
  [RISCV,GISel] Unconditionally use MO_PLT for calls (#72355)

All known linkers handle R_RISCV_CALL and R_RISCV_CALL_PLT in the same
way (GNU ld since
https://sourceware.org/pipermail/binutils/2020-August/112750.html).

MO_CALL is for R_RISCV_CALL, a deprecated relocation type. We don't
migrate away from MO_CALL yet.
For GISel we don't have the output difference concern and should weigh
more on simplicity.




More information about the All-commits mailing list