[PATCH] D50019: [InstCombine] Expand strcmp(s, "x") to char comparision

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 30 15:22:08 PDT 2018


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

strcmp(x, "x") -> *x == 'x'


Repository:
  rL LLVM

https://reviews.llvm.org/D50019

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50019.158103.patch
Type: text/x-patch
Size: 5118 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180730/1acb98b7/attachment.bin>


More information about the llvm-commits mailing list