[PATCH] D154953: [InstSimplify] Remove the remainder loop if we know the mask is always true

Allen zhong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 21 00:22:56 PDT 2023


Allen updated this revision to Diff 542781.
Allen edited the summary of this revision.
Allen added a comment.

address comment
a) revert the checking with getActiveBits
b) as the rem à and in D155350 <https://reviews.llvm.org/D155350>, so this transformation live in simplifyAndInst instead of simplifyURemInst


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

https://reviews.llvm.org/D154953

Files:
  llvm/lib/Analysis/InstructionSimplify.cpp
  llvm/test/Transforms/InstCombine/rem-mul-shl.ll
  llvm/test/Transforms/LoopVectorize/AArch64/sve-interleaved-accesses.ll
  llvm/test/Transforms/LoopVectorize/AArch64/sve-widen-phi.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154953.542781.patch
Type: text/x-patch
Size: 81058 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230721/af3925ec/attachment.bin>


More information about the llvm-commits mailing list