[PATCH] D72930: [FEnv] Constfold some unary constrained operations

Serge Pavlov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 17 08:34:34 PST 2020


sepavloff created this revision.
sepavloff added reviewers: andrew.w.kaylor, evandro, arsenm, kpn, craig.topper.
Herald added subscribers: hiraditya, wdng.
Herald added a project: LLVM.

This change implements constant folding for constrained versions of
intrinsics, implementing rounding: floor, ceil, trunc, round, rint and
nearbyint.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D72930

Files:
  llvm/include/llvm/IR/FPEnv.h
  llvm/lib/Analysis/ConstantFolding.cpp
  llvm/lib/Analysis/InstructionSimplify.cpp
  llvm/lib/IR/FPEnv.cpp
  llvm/test/Transforms/InstSimplify/constfold-constrained.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72930.238789.patch
Type: text/x-patch
Size: 13547 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200117/bbbc3c82/attachment-0001.bin>


More information about the llvm-commits mailing list