[PATCH] D111085: [FPEnv][InstSimplify] Fold constrained X + -0.0 ==> X

Kevin P. Neal via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 4 11:50:15 PDT 2021


kpn created this revision.
kpn added reviewers: sepavloff, spatel, lebedev.ri, nlopes.
kpn requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Currently the fadd optimizations in InstSimplify don't know how to do this "X + -0.0 ==> X" fold when using the constrained intrinsics. This adds the support.

This review is derived from D106362 <https://reviews.llvm.org/D106362> with some improvements from D107285 <https://reviews.llvm.org/D107285>. I was asked to make a new, smaller version of D106362 <https://reviews.llvm.org/D106362>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D111085

Files:
  llvm/include/llvm/IR/FPEnv.h
  llvm/lib/Analysis/InstructionSimplify.cpp
  llvm/test/Transforms/InstSimplify/strictfp-fadd.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111085.376968.patch
Type: text/x-patch
Size: 5819 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211004/74f6ea4e/attachment.bin>


More information about the llvm-commits mailing list