[PATCH] D117459: [PowerPC] Change CTR clobber estimation for 128-bit floating types
Qiu Chaofan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 17 00:57:36 PST 2022
qiucf created this revision.
qiucf added reviewers: shchenz, jsji, nemanjai, PowerPC.
Herald added subscribers: kbarton, hiraditya.
qiucf requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
- Allow CTR loop for `fp128` operations on Power9 and later CPU
- Specially allow `fneg` for both `ppc_fp128` and `fp128` since we have specialized code lowering them
- Restrict `fpext` and `fptrunc` cast instructions to/from `fp128`, although this fix isn't complete (the value cast may be optimized into pointer cast)
We need a more complete fix to defer CTR clobber judgement after instruction selection. See D81353 <https://reviews.llvm.org/D81353>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D117459
Files:
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
llvm/test/CodeGen/PowerPC/ctrloop-fp128.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117459.400461.patch
Type: text/x-patch
Size: 6588 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220117/6e760ac0/attachment.bin>
More information about the llvm-commits
mailing list