commit | d942fa672663681b592c3abba7727c0527330fde | [log] [tgz] |
---|---|---|
author | Sanjay Patel <spatel@rotateright.com> | Thu Jan 19 16:12:10 2017 +0000 |
committer | Sanjay Patel <spatel@rotateright.com> | Thu Jan 19 16:12:10 2017 +0000 |
tree | eca034fac583ae74352a87cbaa9cf88a57df8b0b | |
parent | b3f7c2ec025e1fb9458928c7e5e285d0383fcf53 [diff] |
[InstCombine] icmp Pred (shl nsw X, C1), C0 --> icmp Pred X, C0 >> C1 Try harder to fold icmp with shl nsw as discussed here: http://lists.llvm.org/pipermail/llvm-dev/2017-January/108749.html This is similar to the 'shl nuw' transforms that were added with D25913. This may eventually help solve: https://llvm.org/bugs/show_bug.cgi?id=30773 Differential Revision: https://reviews.llvm.org/D28406 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292492 91177308-0d34-0410-b5e6-96231b3b80d8