[PATCH] D52070: [InstCombine] Fold (min/max ~X, Y) -> ~(max/min X, ~Y) when Y is freely invertible

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 13 21:42:53 PDT 2018


craig.topper created this revision.
craig.topper added a reviewer: spatel.

This restores the combine that was reverted in r341883. The infinite loop from the failing test no longer occurs due to changes from r342163.


Repository:
  rL LLVM

https://reviews.llvm.org/D52070

Files:
  lib/Transforms/InstCombine/InstCombineSelect.cpp
  test/Transforms/InstCombine/max-of-nots.ll
  test/Transforms/InstCombine/pr38897.ll
  test/Transforms/InstCombine/select.ll
  test/Transforms/InstCombine/select_meta.ll
  test/Transforms/InstCombine/sub.ll
  test/Transforms/InstCombine/xor.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52070.165418.patch
Type: text/x-patch
Size: 16522 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180914/e3eec1d1/attachment-0001.bin>


More information about the llvm-commits mailing list