[PATCH] D49320: [InstCombine] Fold 'check for [no] signed truncation' pattern

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 18 03:27:49 PDT 2018


lebedev.ri updated this revision to Diff 156036.
lebedev.ri added a comment.

Operate on `APInt`'s directly, fixes PR38204.

Once this handled non-splats, this will have to not operate on these `APInt`'s,
but operate on `ConstantInt` vectors directly anyway.


Repository:
  rL LLVM

https://reviews.llvm.org/D49320

Files:
  lib/Transforms/InstCombine/InstCombineCompares.cpp
  test/Transforms/InstCombine/canonicalize-lack-of-signed-truncation-check.ll
  test/Transforms/InstCombine/canonicalize-signed-truncation-check.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49320.156036.patch
Type: text/x-patch
Size: 8884 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180718/334b030b/attachment.bin>


More information about the llvm-commits mailing list