[PATCH] D156107: ConstantFolding: Constant fold denormal inputs to canonicalize for IEEE

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 24 05:05:13 PDT 2023


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

This makes it possible to use canonicalize to perform a dynamic check
for whether denormal flushing is enabled, which will fold out when the
denormal mode is known. Previously it would only fold if denormal
flushing were known enabled.

Not sure if this needs to filter the misbehaved types


https://reviews.llvm.org/D156107

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156107.543475.patch
Type: text/x-patch
Size: 13741 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230724/0448b48c/attachment.bin>


More information about the llvm-commits mailing list