[all-commits] [llvm/llvm-project] 930b33: [TargetMachine] Clean up TargetMachine::shouldAssu...

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


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

  Changed paths:
    M llvm/lib/Target/TargetMachine.cpp
    M llvm/test/CodeGen/X86/abi-isel.ll

  Log Message:
  -----------
  [TargetMachine] Clean up TargetMachine::shouldAssumeDSOLocal after x86-32 specific hack is moved to X86Subtarget

With my previous commit, X86Subtarget::classifyGlobalReference has learned to
use MO_NO_FLAG for 32-bit ELF -fno-pic code, the x86-32 special case in
TargetMachine::shouldAssumeDSOLocal can be removed. Since we no longer imply
dso_local for function declarations, we can drop the ppc64 special case as well.

This is NFC in terms of Clang emitted assembly.




More information about the All-commits mailing list