[PATCH] D155436: InstSimplify: Handle basic folds for frexp

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 17 03:55:39 PDT 2023


arsenm created this revision.
arsenm added reviewers: foad, nlopes, jcranmer-intel, kpn, sepavloff, andrew.w.kaylor.
Herald added subscribers: StephenFan, hiraditya, tpr.
Herald added a project: All.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

Handle constant folding and idempotent folding. Not sure
this is an appropriate use of undef for the inf/nan case. The
C version says the second result is "unspecified". The AMDGPU
instruction returns 0.


https://reviews.llvm.org/D155436

Files:
  llvm/lib/Analysis/ConstantFolding.cpp
  llvm/lib/Analysis/InstructionSimplify.cpp
  llvm/test/Transforms/InstSimplify/frexp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155436.540938.patch
Type: text/x-patch
Size: 20241 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230717/f2a3204d/attachment.bin>


More information about the llvm-commits mailing list