[PATCH] D116952: [ConstantFolding] Flush folded denormals to zero when using fastmath

David Candler via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 20 05:15:42 PST 2022


dcandler updated this revision to Diff 401607.
dcandler added a reviewer: nikic.
dcandler added a comment.

I've updated the patch to use TargetTransformInfo to determine whether the target supports flushing to zero. I'm slightly wary, as there is an warning discouraging using TargetTransformInfo, but I unsure of an alternative.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116952/new/

https://reviews.llvm.org/D116952

Files:
  llvm/include/llvm/Analysis/ConstantFolding.h
  llvm/include/llvm/Analysis/TargetTransformInfo.h
  llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
  llvm/include/llvm/Transforms/InstCombine/InstCombiner.h
  llvm/lib/Analysis/ConstantFolding.cpp
  llvm/lib/Analysis/TargetTransformInfo.cpp
  llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
  llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
  llvm/lib/Target/ARM/ARMTargetTransformInfo.h
  llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
  llvm/test/Transforms/InstCombine/AArch64/constant-fold-fp-denormal.ll
  llvm/test/Transforms/InstCombine/ARM/constant-fold-fp-denormal.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116952.401607.patch
Type: text/x-patch
Size: 16932 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220120/e178330a/attachment.bin>


More information about the llvm-commits mailing list