[PATCH] D64859: [InstCombine] strncmp(x,y,strlen(x|y)+1) -> strcmp(x,y)

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 17 04:33:00 PDT 2019


xbolva00 created this revision.
xbolva00 added a reviewer: efriedma.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Removes redundant strlen call since str(n)cmp does it too.


Repository:
  rL LLVM

https://reviews.llvm.org/D64859

Files:
  include/llvm/Transforms/Utils/BuildLibCalls.h
  lib/Transforms/Utils/BuildLibCalls.cpp
  lib/Transforms/Utils/SimplifyLibCalls.cpp
  test/Transforms/InstCombine/strncmp-strlen.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64859.210291.patch
Type: text/x-patch
Size: 6112 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190717/c2ffb642/attachment.bin>


More information about the llvm-commits mailing list