[all-commits] [llvm/llvm-project] 33cc0c: [X86] Don't affect jump tables under +tagged-globals.
Matt Morehouse via All-commits
all-commits at lists.llvm.org
Fri Oct 29 10:38:15 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 33cc0cfd46779d7dcdea20b552f57be429f0547b
https://github.com/llvm/llvm-project/commit/33cc0cfd46779d7dcdea20b552f57be429f0547b
Author: Matt Morehouse <mascasa at google.com>
Date: 2021-10-29 (Fri, 29 Oct 2021)
Changed paths:
M llvm/lib/Target/X86/X86Subtarget.cpp
M llvm/test/CodeGen/X86/tagged-globals-pic.ll
M llvm/test/CodeGen/X86/tagged-globals-static.ll
Log Message:
-----------
[X86] Don't affect jump tables under +tagged-globals.
`classifyLocalReference(nullptr)` is called to get the appropriate
relocation type for jump tables. We should not use @GOTPCREL for this
case.
The new test cases trigger assertions without this patch.
Reviewed By: eugenis
Differential Revision: https://reviews.llvm.org/D112832
More information about the All-commits
mailing list