[all-commits] [llvm/llvm-project] 2262b0: [test] Add explicit dso_local to constant/global v...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Dec 4 13:51:19 PST 2020


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

  Changed paths:
    M llvm/test/CodeGen/AArch64/arm64-bitfield-extract.ll
    M llvm/test/CodeGen/AArch64/arm64-csldst-mmo.ll
    M llvm/test/CodeGen/AArch64/arm64-memcpy-inline.ll
    M llvm/test/CodeGen/AArch64/ghc-cc.ll
    M llvm/test/CodeGen/AArch64/global-alignment.ll
    M llvm/test/CodeGen/AArch64/ldradr.ll
    M llvm/test/CodeGen/AArch64/merge-store.ll
    M llvm/test/CodeGen/SystemZ/ghc-cc-01.ll
    M llvm/test/CodeGen/SystemZ/ipra.ll
    M llvm/test/CodeGen/SystemZ/la-01.ll
    M llvm/test/CodeGen/SystemZ/memcpy-02.ll
    M llvm/test/CodeGen/SystemZ/subregliveness-01.ll
    M llvm/test/CodeGen/SystemZ/subregliveness-05.ll
    M llvm/test/CodeGen/WebAssembly/offset-folding.ll
    M llvm/test/CodeGen/X86/2005-01-17-CycleInDAG.ll
    M llvm/test/CodeGen/X86/2006-01-19-ISelFoldingBug.ll
    M llvm/test/CodeGen/X86/2006-05-02-InstrSched1.ll
    M llvm/test/CodeGen/X86/2006-05-08-CoalesceSubRegClass.ll
    M llvm/test/CodeGen/X86/2006-05-08-InstrSched.ll
    M llvm/test/CodeGen/X86/2006-10-10-FindModifiedNodeSlotBug.ll
    M llvm/test/CodeGen/X86/2006-10-13-CycleInDAG.ll
    M llvm/test/CodeGen/X86/2007-05-05-VecCastExpand.ll
    M llvm/test/CodeGen/X86/2008-02-05-ISelCrash.ll
    M llvm/test/CodeGen/X86/2008-04-24-MemCpyBug.ll
    M llvm/test/CodeGen/X86/2008-07-19-movups-spills.ll
    M llvm/test/CodeGen/X86/2008-07-22-CombinerCrash.ll
    M llvm/test/CodeGen/X86/2008-09-11-CoalescerBug.ll
    M llvm/test/CodeGen/X86/2008-09-11-CoalescerBug2.ll
    M llvm/test/CodeGen/X86/2008-12-02-IllegalResultType.ll
    M llvm/test/CodeGen/X86/2008-12-23-crazy-address.ll
    M llvm/test/CodeGen/X86/2009-02-03-AnalyzedTwice.ll
    M llvm/test/CodeGen/X86/2009-03-23-MultiUseSched.ll
    M llvm/test/CodeGen/X86/2009-04-12-picrel.ll
    M llvm/test/CodeGen/X86/2009-08-19-LoadNarrowingMiscompile.ll
    M llvm/test/CodeGen/X86/2009-08-23-SubRegReuseUndo.ll
    M llvm/test/CodeGen/X86/2009-10-19-atomic-cmp-eflags.ll
    M llvm/test/CodeGen/X86/2009-11-18-TwoAddrKill.ll
    M llvm/test/CodeGen/X86/2010-07-15-Crash.ll
    M llvm/test/CodeGen/X86/2010-11-18-SelectOfExtload.ll
    M llvm/test/CodeGen/X86/2012-01-16-mfence-nosse-flags.ll
    M llvm/test/CodeGen/X86/atom-call-reg-indirect-foldedreload32.ll
    M llvm/test/CodeGen/X86/atom-call-reg-indirect-foldedreload64.ll
    M llvm/test/CodeGen/X86/atom-call-reg-indirect.ll
    M llvm/test/CodeGen/X86/atomic-minmax-i6432.ll
    M llvm/test/CodeGen/X86/atomic-unordered.ll
    M llvm/test/CodeGen/X86/atomic16.ll
    M llvm/test/CodeGen/X86/atomic32.ll
    M llvm/test/CodeGen/X86/atomic64.ll
    M llvm/test/CodeGen/X86/atomic6432.ll
    M llvm/test/CodeGen/X86/atomic8.ll
    M llvm/test/CodeGen/X86/avoid-loop-align-2.ll
    M llvm/test/CodeGen/X86/basic-block-sections-eh.ll
    M llvm/test/CodeGen/X86/bug37521.ll
    M llvm/test/CodeGen/X86/callbr-asm-blockplacement.ll
    M llvm/test/CodeGen/X86/cmov.ll
    M llvm/test/CodeGen/X86/cmpxchg8b_alloca_regalloc_handling.ll
    M llvm/test/CodeGen/X86/code_placement.ll
    M llvm/test/CodeGen/X86/codegen-prepare-cast.ll
    M llvm/test/CodeGen/X86/codemodel.ll
    M llvm/test/CodeGen/X86/commute-two-addr.ll
    M llvm/test/CodeGen/X86/divrem8_ext.ll
    M llvm/test/CodeGen/X86/dollar-name.ll
    M llvm/test/CodeGen/X86/extractps.ll
    M llvm/test/CodeGen/X86/fastcc-sret.ll
    M llvm/test/CodeGen/X86/fold-load.ll
    M llvm/test/CodeGen/X86/fold-mul-lohi.ll
    M llvm/test/CodeGen/X86/fold-rmw-ops.ll
    M llvm/test/CodeGen/X86/fold-sext-trunc.ll
    M llvm/test/CodeGen/X86/fold-vector-bv-crash.ll
    M llvm/test/CodeGen/X86/ghc-cc.ll
    M llvm/test/CodeGen/X86/ghc-cc64.ll
    M llvm/test/CodeGen/X86/hipe-cc.ll
    M llvm/test/CodeGen/X86/inline-asm-out-regs.ll
    M llvm/test/CodeGen/X86/keylocker-intrinsics.ll
    M llvm/test/CodeGen/X86/lea-opt.ll
    M llvm/test/CodeGen/X86/lsr-i386.ll
    M llvm/test/CodeGen/X86/lsr-interesting-step.ll
    M llvm/test/CodeGen/X86/lsr-static-addr.ll
    M llvm/test/CodeGen/X86/lvi-hardening-indirectbr.ll
    M llvm/test/CodeGen/X86/machine-cse.ll
    M llvm/test/CodeGen/X86/merge-consecutive-loads-256.ll
    M llvm/test/CodeGen/X86/movtopush.ll
    M llvm/test/CodeGen/X86/movtopush64.ll
    M llvm/test/CodeGen/X86/mul128.ll
    M llvm/test/CodeGen/X86/musttail-varargs.ll
    M llvm/test/CodeGen/X86/negative-offset.ll
    M llvm/test/CodeGen/X86/negative-subscript.ll
    M llvm/test/CodeGen/X86/no-sse-x86.ll
    M llvm/test/CodeGen/X86/overlap-shift.ll
    M llvm/test/CodeGen/X86/packed_struct.ll
    M llvm/test/CodeGen/X86/peephole-na-phys-copy-folding.ll
    M llvm/test/CodeGen/X86/post-ra-sched.ll
    M llvm/test/CodeGen/X86/pr15981.ll
    M llvm/test/CodeGen/X86/pr21792.ll
    M llvm/test/CodeGen/X86/pr2585.ll
    M llvm/test/CodeGen/X86/pr31045.ll
    M llvm/test/CodeGen/X86/pr31271.ll
    M llvm/test/CodeGen/X86/pr32256.ll
    M llvm/test/CodeGen/X86/pr32284.ll
    M llvm/test/CodeGen/X86/pr32329.ll
    M llvm/test/CodeGen/X86/pr32340.ll
    M llvm/test/CodeGen/X86/pr32345.ll
    M llvm/test/CodeGen/X86/pr3241.ll
    M llvm/test/CodeGen/X86/pr3244.ll
    M llvm/test/CodeGen/X86/pr32515.ll
    M llvm/test/CodeGen/X86/pr32588.ll
    M llvm/test/CodeGen/X86/pr32659.ll
    M llvm/test/CodeGen/X86/pr33828.ll
    M llvm/test/CodeGen/X86/pr33960.ll
    M llvm/test/CodeGen/X86/pr34137.ll
    M llvm/test/CodeGen/X86/pr34292.ll
    M llvm/test/CodeGen/X86/pr34381.ll
    M llvm/test/CodeGen/X86/pr3522.ll
    M llvm/test/CodeGen/X86/pr35316.ll
    M llvm/test/CodeGen/X86/pr35443.ll
    M llvm/test/CodeGen/X86/pr36274.ll
    M llvm/test/CodeGen/X86/pr37916.ll
    M llvm/test/CodeGen/X86/pr40539.ll
    M llvm/test/CodeGen/X86/pr42452.ll
    M llvm/test/CodeGen/X86/pr47482.ll
    M llvm/test/CodeGen/X86/pr5145.ll
    M llvm/test/CodeGen/X86/rd-mod-wr-eflags.ll
    M llvm/test/CodeGen/X86/remat-constant.ll
    M llvm/test/CodeGen/X86/retpoline-external.ll
    M llvm/test/CodeGen/X86/retpoline.ll
    M llvm/test/CodeGen/X86/shift-one.ll
    M llvm/test/CodeGen/X86/shift-parts.ll
    M llvm/test/CodeGen/X86/shl-crash-on-legalize.ll
    M llvm/test/CodeGen/X86/shrink_vmul.ll
    M llvm/test/CodeGen/X86/shrink_vmul_sse.ll
    M llvm/test/CodeGen/X86/sink-hoist.ll
    M llvm/test/CodeGen/X86/sink-local-value.ll
    M llvm/test/CodeGen/X86/sse2.ll
    M llvm/test/CodeGen/X86/sse3.ll
    M llvm/test/CodeGen/X86/store-fp-constant.ll
    M llvm/test/CodeGen/X86/stride-nine-with-base-reg.ll
    M llvm/test/CodeGen/X86/stride-reuse.ll
    M llvm/test/CodeGen/X86/tail-merge-identical.ll
    M llvm/test/CodeGen/X86/tail-opts.ll
    M llvm/test/CodeGen/X86/v4i32load-crash.ll
    M llvm/test/CodeGen/X86/vec_zero_cse.ll
    M llvm/test/CodeGen/X86/volatile.ll
    M llvm/test/CodeGen/X86/x32-function_pointer-1.ll
    M llvm/test/CodeGen/X86/x86-64-disp.ll
    M llvm/test/CodeGen/XCore/codemodel.ll
    M llvm/test/CodeGen/XCore/offset_folding.ll
    M llvm/test/DebugInfo/X86/fission-ranges.ll
    M llvm/test/Transforms/CodeGenPrepare/X86/sink-addrmode-select.ll
    M llvm/test/tools/gold/X86/relocation-model-pic.ll
    A llvm/test/tools/gold/X86/relocation-model-static.ll

  Log Message:
  -----------
  [test] Add explicit dso_local to constant/global variable declarations

They are currently implicit because TargetMachine::shouldAssumeDSOLocal implies
dso_local.

For external data, clang -fno-pic emits the dso_local specifier for ELF and
non-MinGW COFF. Adding explicit dso_local makes these tests in align with the
clang behavior and helps implementing an option to use GOT indirection for
external data access in -fno-pic mode (to avoid copy relocations).




More information about the All-commits mailing list