[PATCH] D116952: [ConstantFolding] Respect denormal handling mode attributes when folding instructions
David Candler via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 3 01:51:30 PDT 2022
dcandler updated this revision to Diff 426602.
dcandler added a comment.
I've moved the tests to instsimplify, and expanded them out to cover more cases and additional instructions. While there may be some overlap, this structures it a bit better and ensures cases don't get conflated: depending on the instruction some zero results can be obtained from either the input getting zeroed or the output getting zeroed, so it's better to test both separately.
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
llvm/test/Transforms/InstSimplify/AArch64/constant-fold-fp-denormal-fadd.ll
llvm/test/Transforms/InstSimplify/AArch64/constant-fold-fp-denormal-fdiv.ll
llvm/test/Transforms/InstSimplify/AArch64/constant-fold-fp-denormal-fmul.ll
llvm/test/Transforms/InstSimplify/AArch64/constant-fold-fp-denormal-fneg.ll
llvm/test/Transforms/InstSimplify/AArch64/constant-fold-fp-denormal-frem.ll
llvm/test/Transforms/InstSimplify/AArch64/constant-fold-fp-denormal-fsub.ll
llvm/test/Transforms/InstSimplify/ARM/constant-fold-fp-denormal-fadd.ll
llvm/test/Transforms/InstSimplify/ARM/constant-fold-fp-denormal-fdiv.ll
llvm/test/Transforms/InstSimplify/ARM/constant-fold-fp-denormal-fmul.ll
llvm/test/Transforms/InstSimplify/ARM/constant-fold-fp-denormal-fneg.ll
llvm/test/Transforms/InstSimplify/ARM/constant-fold-fp-denormal-frem.ll
llvm/test/Transforms/InstSimplify/ARM/constant-fold-fp-denormal-fsub.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116952.426602.patch
Type: text/x-patch
Size: 51293 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220503/419b6e4d/attachment.bin>
More information about the llvm-commits
mailing list