diff options
author | Fangrui Song <i@maskray.me> | 2024-06-20 20:52:07 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2024-06-20 20:52:07 -0700 |
commit | f3c4dae6f2c44f1a7f130c4cf4b2861b62402b48 (patch) | |
tree | 1499471ffa29a6c342db8601b07899bf8cef47a4 /llvm/unittests/Analysis/TargetLibraryInfoTest.cpp | |
parent | 762546565173e27b1851dfd1f3bfcc7fc847a2f9 (diff) | |
download | llvm-f3c4dae6f2c44f1a7f130c4cf4b2861b62402b48.zip llvm-f3c4dae6f2c44f1a7f130c4cf4b2861b62402b48.tar.gz llvm-f3c4dae6f2c44f1a7f130c4cf4b2861b62402b48.tar.bz2 |
[ELF] -no-pie: don't optimize addq R_X86_64_REX_GOTPCRELX when !isInt<32>(va)
When `!isInt<32>(x.va)`, `addq x@GOTPCREL(%rip), %rax` (possibly due to
getelementptr of a global variable) should not be optimized to
`addq offset, %rax`. We currently have either an assertion failure or an
incorrect optimization.
Fix it using the relaxOnce framework.
Diffstat (limited to 'llvm/unittests/Analysis/TargetLibraryInfoTest.cpp')
0 files changed, 0 insertions, 0 deletions