[PATCH] D128011: [SimplifyLibCalls] Transform memchr(STR, C, N) to chain of ORs

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 17 06:26:11 PDT 2022


xbolva00 updated this revision to Diff 437870.
xbolva00 added a comment.

Added PhaseOrdering test to ensure instcombine + simplifycfg produces optimal switch code.


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

https://reviews.llvm.org/D128011

Files:
  llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
  llvm/test/Transforms/InstCombine/memchr-7.ll
  llvm/test/Transforms/PhaseOrdering/memchr-switch.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128011.437870.patch
Type: text/x-patch
Size: 8514 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220617/addb2d55/attachment-0001.bin>


More information about the llvm-commits mailing list