[PATCH] D51942: [InstCombine] Fold (C/x)>0 into x>0 if possible

Martin Elshuber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 26 07:40:48 PDT 2018


marels updated this revision to Diff 167132.
marels added a comment.

Changed code to use pattern matching API. When the inputs are vectors only splat vectors are considered.


https://reviews.llvm.org/D51942

Files:
  lib/Transforms/InstCombine/InstCombineCompares.cpp
  test/Transforms/InstCombine/fcmp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51942.167132.patch
Type: text/x-patch
Size: 7673 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180926/984f4732/attachment.bin>


More information about the llvm-commits mailing list