[PATCH] D80706: [DAGCombine] Add hook to allow target specific test for sqrt input
Qing Shan Zhang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 28 03:13:04 PDT 2020
steven.zhang created this revision.
steven.zhang added reviewers: spatel, RKSimon, jsji, PowerPC.
Herald added subscribers: ecnelises, wuzish, kbarton, hiraditya, nemanjai.
Herald added a project: LLVM.
PowerPC has instruction ftsqrt/xstsqrtdp etc to do the input test for software square root. LLVM now tests it with smallest normalized value using abs + setcc. We should add hook to target that has test instructions.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D80706
Files:
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.h
llvm/lib/Target/PowerPC/PPCInstrFormats.td
llvm/lib/Target/PowerPC/PPCInstrInfo.td
llvm/lib/Target/PowerPC/PPCInstrVSX.td
llvm/test/CodeGen/PowerPC/fma-mutate.ll
llvm/test/CodeGen/PowerPC/recipest.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80706.266793.patch
Type: text/x-patch
Size: 12930 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200528/0d2d520c/attachment-0001.bin>
More information about the llvm-commits
mailing list