[PATCH] D28406: [InstCombine] icmp sgt (shl nsw X, C1), C0 --> icmp sgt X, C0 >> C1

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 18 14:31:54 PST 2017


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

Patch updated:
Removed nuw distractions from this patch (https://reviews.llvm.org/rL292433, https://reviews.llvm.org/rL292440) and added extra tests for ne/eq (https://reviews.llvm.org/rL292441).


https://reviews.llvm.org/D28406

Files:
  lib/Transforms/InstCombine/InstCombineCompares.cpp
  test/Transforms/InstCombine/icmp-shl-nsw.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28406.84885.patch
Type: text/x-patch
Size: 11485 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170118/5478db68/attachment.bin>


More information about the llvm-commits mailing list