[PATCH] D157907: [NFC] Refactor X86TargetLowering::getGlobalWrapperKind()
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 24 13:31:02 PDT 2023
aeubanks added a comment.
reduced
target triple = "x86_64-apple-macosx13.0.0"
define void @f() noinline optnone {
bb:
switch i64 0, label %bb1 [
i64 0, label %bb1
i64 2, label %bb2
i64 5, label %bb4
i64 4, label %bb3
]
bb1: ; preds = %bb, %bb
ret void
bb2: ; preds = %bb
ret void
bb3: ; preds = %bb
ret void
bb4: ; preds = %bb
ret void
}
$ lli --relocation-model=pic --code-model=large --jit-kind=mcjit --entry-function=f /tmp/a.ll
has something to do with jump tables (which are actually known to be an issue in clang's large code model)
https://github.com/llvm/llvm-project/blob/5c92c9f34a7dba804479acef62c576d1a170ef1f/llvm/lib/Target/X86/X86ISelLoweringCall.cpp#L515
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157907/new/
https://reviews.llvm.org/D157907
More information about the llvm-commits
mailing list