[PATCH] D71954: [PowerPC] Change default for unaligned FP access for older subtargets
Nemanja Ivanovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 27 20:18:15 PST 2019
nemanjai created this revision.
nemanjai added reviewers: hfinkel, PowerPC, kernigh.
Herald added subscribers: shchenz, jsji, kbarton, hiraditya.
Herald added a project: LLVM.
nemanjai updated this revision to Diff 235458.
nemanjai added a comment.
Herald added a subscriber: wuzish.
Add the feature to the BG cores as well.
This is a fix for https://bugs.llvm.org/show_bug.cgi?id=40554
Some CPU's trap to the kernel on unaligned floating point access and there are kernels that do not handle the interrupt. The program then fails with a SIGBUS according to the PR. This just switches the default for unaligned access to only allow it on recent server CPUs that are known to allow this.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D71954
Files:
llvm/lib/Target/PowerPC/PPC.td
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCSubtarget.h
llvm/test/CodeGen/PowerPC/unaligned-floats.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71954.235458.patch
Type: text/x-patch
Size: 5929 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191228/77d106a8/attachment-0001.bin>
More information about the llvm-commits
mailing list