[PATCH] D72871: [FPEnv] Alternative implementation of constrained fmuladd that avoids fmuladd ISD opcodes

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 16 13:16:42 PST 2020


craig.topper created this revision.
craig.topper added reviewers: andrew.w.kaylor, uweigand, kpn, rjmccall, pengfei, LiuChen3, cameron.mcinally.
Herald added subscribers: jdoerfert, hiraditya.
Herald added a project: LLVM.

This is an alternative version of D72820 <https://reviews.llvm.org/D72820> that modifies the macros in ConstrainedOps.def to allow a function to not have a corresponding ISD opcode. This allows us to avoid introducing an ISD opcode that will never be instantiated.


https://reviews.llvm.org/D72871

Files:
  clang/lib/CodeGen/CGExprScalar.cpp
  clang/test/CodeGen/constrained-math-builtins.c
  llvm/docs/LangRef.rst
  llvm/include/llvm/CodeGen/BasicTTIImpl.h
  llvm/include/llvm/CodeGen/SelectionDAGNodes.h
  llvm/include/llvm/CodeGen/TargetLowering.h
  llvm/include/llvm/IR/ConstrainedOps.def
  llvm/include/llvm/IR/IRBuilder.h
  llvm/include/llvm/IR/Intrinsics.td
  llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
  llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  llvm/lib/CodeGen/TargetLoweringBase.cpp
  llvm/lib/IR/IntrinsicInst.cpp
  llvm/lib/IR/Verifier.cpp
  llvm/test/CodeGen/X86/fp-intrinsics-fma.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72871.238593.patch
Type: text/x-patch
Size: 34174 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200116/cb403365/attachment.bin>


More information about the llvm-commits mailing list