[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
Thu Dec 29 05:36:24 PST 2022


spatel updated this revision to Diff 485610.
spatel added a comment.

Patch updated:

1. Added non-splat vector tests.
2. Added code comments for bool function args.
3. Added TODO for exact shifts.


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.485610.patch
Type: text/x-patch
Size: 10443 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221229/b6f73db1/attachment.bin>


More information about the llvm-commits mailing list