[PATCH] D81900: Add coverage for inexact constant folding for multiplication in Selection DAG

Michael Berg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 15 17:42:17 PDT 2020


mcberg2017 created this revision.
mcberg2017 added reviewers: spatel, arsenm, foad, scanon.
Herald added subscribers: llvm-commits, kerbowa, hiraditya, nhaehnle, wdng, jvesely, nemanjai.
Herald added a project: LLVM.

Guard constant folding using inexact testing before forwarding results, also allow Unsafe to gate the optimization. This functionality was initially added to GlobalIsel internally at Apple.  We are porting it into SDAG for general use.  Others may want to port it back into their GlobalIsel representation after the fact.  The modified tests primarily record the difference in inexact constant folding.


https://reviews.llvm.org/D81900

Files:
  llvm/include/llvm/CodeGen/SelectionDAG.h
  llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  llvm/test/CodeGen/AArch64/select_const.ll
  llvm/test/CodeGen/AMDGPU/llvm.sin.ll
  llvm/test/CodeGen/PowerPC/select_const.ll
  llvm/test/CodeGen/X86/gpu-codegen-combine-fmul-to-cst_inexact.ll
  llvm/test/CodeGen/X86/select_const.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81900.270926.patch
Type: text/x-patch
Size: 7646 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200616/1a2a4999/attachment.bin>


More information about the llvm-commits mailing list