[PATCH] D103956: [ConstantFolding] Enable folding of min/max/copysign for all floats

Serge Pavlov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 9 05:20:50 PDT 2021


sepavloff created this revision.
sepavloff added reviewers: spatel, kpn, craig.topper, foad, arsenm, bkramer.
Herald added a subscriber: hiraditya.
sepavloff requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

Previously such folding was enabled for half, float and double values
only. With this change it is allowed for other floating point values
also.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103956

Files:
  llvm/lib/Analysis/ConstantFolding.cpp
  llvm/test/Transforms/InstSimplify/ConstProp/copysign.ll
  llvm/test/Transforms/InstSimplify/ConstProp/min-max.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103956.350859.patch
Type: text/x-patch
Size: 14005 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210609/dbebe5f8/attachment.bin>


More information about the llvm-commits mailing list