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

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 13 06:12:49 PDT 2018


lebedev.ri added a comment.

And now,

  $ cd llvm
  $ git checkout master # the svn trunk
  $ arc patch D47922 
  $ # unstage the test/test/Transforms/InstSimplify/AndOrXor.ll from last commit, delete that leftover file.
  $ git rebase arcpatch-D48000 arcpatch-D47922
  $ cd ../llvm-build/ # or whereever
  $ ninja
  $ ../llvm/utils/utils/update_test_checks.py --opt-binary ./bin/opt ../llvm/test/test/Transforms/InstSimplify/AndOrXor.ll
  $ git commit --amend
  $ git diff -p -U99999 arcpatch-D48000..arcpatch-D48000 > /tmp/patch.patch # i.e. from D48000 (!!! *not* svn trunk/git master) to this patch
  $ # Update this differential with that patch.


Repository:
  rL LLVM

https://reviews.llvm.org/D47922





More information about the llvm-commits mailing list