[PATCH] D46380: [InstSimplify] Adding safety checks for 'shl', 'ashr' and 'lshr'

Omer Paparo Bivas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 17 08:14:31 PDT 2018


opaparo updated this revision to Diff 151645.
opaparo added a comment.

Rebasing the patch and adjusting it to the changes made in https://reviews.llvm.org/rL333689.
Removed special code for CastInst in InstructionSimplify::SimplifyWithOpReplaced as https://reviews.llvm.org/rL333689's changes handle that (in a different way).


Repository:
  rL LLVM

https://reviews.llvm.org/D46380

Files:
  lib/Analysis/InstructionSimplify.cpp
  test/Transforms/InstCombine/select-bitext-bitwise-ops.ll
  test/Transforms/InstCombine/select-obo-peo-ops.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46380.151645.patch
Type: text/x-patch
Size: 16202 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180617/bb2cbeda/attachment.bin>


More information about the llvm-commits mailing list