[PATCH] D19874: [InstSimplify] use computeKnownBits on shift amount operands

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Tue May 3 11:31:01 PDT 2016


spatel updated this revision to Diff 56038.
spatel added a comment.

Patch updated:
We don't have to special case an i1 type - the mask calculation works as-is there. Any shift of an i1 will always return the shifted operand because an actual shift would be undefined.


http://reviews.llvm.org/D19874

Files:
  lib/Analysis/InstructionSimplify.cpp
  test/Transforms/InstSimplify/shift-knownbits.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19874.56038.patch
Type: text/x-patch
Size: 5720 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160503/fa8fc4c4/attachment.bin>


More information about the llvm-commits mailing list