[PATCH] D140733: [InstSimplify] fold exact divide to poison if it is known to not divide evenly
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 28 12:31:17 PST 2022
spatel updated this revision to Diff 485535.
spatel added a comment.
Patch updated:
Pass in a bool for exact-ness from the callers instead of using the context instruction in the SimplifyQuery. Test diffs are not changed.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140733/new/
https://reviews.llvm.org/D140733
Files:
llvm/include/llvm/Analysis/InstructionSimplify.h
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
llvm/test/Transforms/InstCombine/udiv-simplify.ll
llvm/test/Transforms/InstSimplify/div.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140733.485535.patch
Type: text/x-patch
Size: 9049 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221228/df6b0117/attachment.bin>
More information about the llvm-commits
mailing list