[PATCH] D149001: [InstSimplify] sdiv a (1 srem b) --> a

Zhu Siyuan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 23 20:15:03 PDT 2023


floatshadow updated this revision to Diff 516223.
floatshadow added a comment.

address comments

1. remove old pattern matching m_One() and m_ZExt()
2. regenerate test PR51762 test in Transforms/InstCombine/zext-or-icmp.ll


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

https://reviews.llvm.org/D149001

Files:
  llvm/lib/Analysis/InstructionSimplify.cpp
  llvm/test/Transforms/InstCombine/zext-or-icmp.ll
  llvm/test/Transforms/InstSimplify/div.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149001.516223.patch
Type: text/x-patch
Size: 6689 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230424/97298a44/attachment.bin>


More information about the llvm-commits mailing list