[PATCH] D131427: [ARM] Do not use LOAD_STACK_GUARD with ROPI/RWPI
Pengxuan Zheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 8 12:46:21 PDT 2022
pzheng created this revision.
pzheng added reviewers: ardb, nickdesaulniers.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
pzheng requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
ROPI/RWPI are not supported with LOAD_STACK_GUARD currently.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D131427
Files:
llvm/lib/Target/ARM/ARMISelLowering.cpp
Index: llvm/lib/Target/ARM/ARMISelLowering.cpp
===================================================================
--- llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -21106,7 +21106,10 @@
return InsertFencesForAtomic;
}
-bool ARMTargetLowering::useLoadStackGuardNode() const { return true; }
+bool ARMTargetLowering::useLoadStackGuardNode() const {
+ // ROPI/RWPI are not supported currently.
+ return !Subtarget->isROPI() && !Subtarget->isRWPI();
+}
void ARMTargetLowering::insertSSPDeclarations(Module &M) const {
if (!Subtarget->getTargetTriple().isWindowsMSVCEnvironment())
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131427.450907.patch
Type: text/x-patch
Size: 632 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220808/95401b26/attachment.bin>
More information about the llvm-commits
mailing list