[PATCH] D129478: [IR] Remove support for float binop constant expressions

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 11 04:29:45 PDT 2022


nikic created this revision.
nikic added reviewers: nhaehnle, reames.
Herald added subscribers: jsji, kosarev, kerbowa, pengfei, hiraditya, jvesely, nemanjai, qcolombet.
Herald added a reviewer: deadalnix.
Herald added a project: All.
nikic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

As part of https://discourse.llvm.org/t/rfc-remove-most-constant-expressions/63179, this removes support for the floating-point binop constant expressions fadd, fsub, fmul, fdiv and frem.

As part of this change, the C APIs LLVMConstFAdd, LLVMConstFSub, LLVMConstFMul, LLVMConstFDiv and LLVMConstFRem are removed. The LLVMBuild APIs should be used instead.


https://reviews.llvm.org/D129478

Files:
  llvm/bindings/go/llvm/ir.go
  llvm/bindings/ocaml/llvm/llvm.ml
  llvm/bindings/ocaml/llvm/llvm.mli
  llvm/docs/ReleaseNotes.rst
  llvm/include/llvm-c/Core.h
  llvm/include/llvm/IR/Constants.h
  llvm/lib/AsmParser/LLParser.cpp
  llvm/lib/IR/Constants.cpp
  llvm/lib/IR/Core.cpp
  llvm/test/Bindings/OCaml/core.ml
  llvm/test/CodeGen/AMDGPU/sched-crash-dbg-value.mir
  llvm/test/CodeGen/AMDGPU/si-spill-cf.ll
  llvm/test/CodeGen/PowerPC/2008-07-15-Fabs.ll
  llvm/test/CodeGen/X86/2011-02-23-UnfoldBug.ll
  llvm/test/CodeGen/X86/pr44749.ll
  llvm/test/DebugInfo/ARM/selectiondag-deadcode.ll
  llvm/test/Transforms/InstCombine/fma.ll
  llvm/test/Transforms/InstCombine/fmul.ll
  llvm/test/Transforms/InstSimplify/ConstProp/bitcast.ll
  llvm/test/Transforms/InstSimplify/ConstProp/constant-expr.ll
  llvm/test/Transforms/InstSimplify/fdiv.ll
  llvm/test/Transforms/LoopVectorize/scev-exitlim-crash.ll
  llvm/unittests/IR/ConstantsTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129478.443598.patch
Type: text/x-patch
Size: 31868 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220711/7aaed265/attachment.bin>


More information about the llvm-commits mailing list