[PATCH] D116952: [ConstantFolding] Respect denormal handling mode attributes when folding instructions
David Candler via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 8 08:23:30 PDT 2022
dcandler updated this revision to Diff 421535.
dcandler added a comment.
I've removed FNeg from the changes; indeed it wasn't affected by denormal mode wherever I tried. That did allow me to refactor slightly to wrap around just ConstantFoldBinaryOpOperands, and fall back to that when dealing with a constant expression or functionless instruction just as before. So for the moment the denormal mode information is only applied in situations where it is available, which is one step forward at least.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116952/new/
https://reviews.llvm.org/D116952
Files:
llvm/include/llvm/Analysis/ConstantFolding.h
llvm/lib/Analysis/ConstantFolding.cpp
llvm/lib/Analysis/InstructionSimplify.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.421535.patch
Type: text/x-patch
Size: 10919 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220408/4687e38b/attachment.bin>
More information about the llvm-commits
mailing list