[all-commits] [llvm/llvm-project] 974216: [LoongArch] Support load/store of dso_local PIC gl...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Thu Jul 21 19:38:12 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9742166935f48d0e84f5b721819208fbc0afae3a
https://github.com/llvm/llvm-project/commit/9742166935f48d0e84f5b721819208fbc0afae3a
Author: Fangrui Song <i at maskray.me>
Date: 2022-07-21 (Thu, 21 Jul 2022)
Changed paths:
M llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
M llvm/test/CodeGen/LoongArch/ir-instruction/load-store.ll
Log Message:
-----------
[LoongArch] Support load/store of dso_local PIC global values
lowerGlobalAddress added by D128427 can be used for PIC. The actual condition is
that the global value needs to be dso_local (a dso_preemptable one needs GOT
indirection).
load-store.ll has UB due to out-of-bounds load/store. Fix the UB in the variable
test and add an array test. Note: NOPIC array index is currently wrong.
Reviewed By: wangleiat
Differential Revision: https://reviews.llvm.org/D129977
More information about the All-commits
mailing list