[PATCH] D154048: [PowerPC] disable ppc-use-absolute-jumptables for AIX
Ting Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 4 02:00:05 PDT 2023
tingwang updated this revision to Diff 536991.
tingwang retitled this revision from "[PowerPC] fix jumptable encoding when ppc-use-absolute-jumptables is turned on" to "[PowerPC] disable ppc-use-absolute-jumptables for AIX".
tingwang edited the summary of this revision.
tingwang added a comment.
Disable the flag on AIX.
However the issue remains on at least ppc64le. I'm not sure of the purpose of this flag, so just expose the issue and leave it here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154048/new/
https://reviews.llvm.org/D154048
Files:
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
Index: llvm/lib/Target/PowerPC/PPCISelLowering.cpp
===================================================================
--- llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -3197,7 +3197,7 @@
}
bool PPCTargetLowering::isJumpTableRelative() const {
- if (UseAbsoluteJumpTables)
+ if (!Subtarget.isAIXABI() && UseAbsoluteJumpTables)
return false;
if (Subtarget.isPPC64() || Subtarget.isAIXABI())
return true;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154048.536991.patch
Type: text/x-patch
Size: 471 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230704/3e5c203e/attachment.bin>
More information about the llvm-commits
mailing list