[PATCH] D50233: [InstCombine] Transform str(n)cmp to memcmp

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 4 01:20:34 PDT 2018


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

- Added/fixed tests
- Allow any comparision with zero

Tests should be ok now, I will wait ~1 day I will commit them.


https://reviews.llvm.org/D50233

Files:
  lib/Transforms/Utils/SimplifyLibCalls.cpp
  test/Transforms/InstCombine/strcmp-memcmp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50233.159172.patch
Type: text/x-patch
Size: 28174 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180804/366f1ee8/attachment.bin>


More information about the llvm-commits mailing list