[all-commits] [llvm/llvm-project] 687b83: [X86FastISel] Fix MO_GOTPCREL GlobalValue referenc...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Dec 5 23:13:43 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 687b83ceabafe81970cd4639e7f0c89036402081
      https://github.com/llvm/llvm-project/commit/687b83ceabafe81970cd4639e7f0c89036402081
  Author: Fangrui Song <i at maskray.me>
  Date:   2020-12-05 (Sat, 05 Dec 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86FastISel.cpp
    M llvm/test/CodeGen/X86/fast-isel-mem.ll

  Log Message:
  -----------
  [X86FastISel] Fix MO_GOTPCREL GlobalValue reference in static relocation model

This fixes the bug referenced by 5582a7987662a92eda5d883b88fc4586e755acf5
which was exposed by 961f31d8ad14c66829991522d73e14b5a96ff6d4.

With this change, `movq src at GOTPCREL, %rcx` => `movq src at GOTPCREL(%rip), %rcx`




More information about the All-commits mailing list