[PATCH] D47922: unsigned foo(unsigned x, unsigned y) { return x > y && x != 0; } should fold to x > y

Li Jia He via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 8 08:03:25 PDT 2018


HLJ2009 updated this revision to Diff 150518.
HLJ2009 added a comment.

update simplifyUnsignedRangeCheck function's test cases


Repository:
  rL LLVM

https://reviews.llvm.org/D47922

Files:
  lib/Analysis/InstructionSimplify.cpp
  test/Transforms/InstCombine/range-check.ll
  test/Transforms/InstSimplify/AndOrXor.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47922.150518.patch
Type: text/x-patch
Size: 3463 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180608/ae76a11f/attachment.bin>


More information about the llvm-commits mailing list