commit | 832e25415d9aaaad3b2446332e0905f71ca278e5 | [log] [tgz] |
---|---|---|
author | Sanjay Patel <spatel@rotateright.com> | Mon Jun 20 20:59:59 2016 +0000 |
committer | Sanjay Patel <spatel@rotateright.com> | Mon Jun 20 20:59:59 2016 +0000 |
tree | 0d36f508bfeecdfd39a114ef36e30b88dbd9f880 | |
parent | 8122c25a1aed4022a746b91879b52dba2f6afe47 [diff] |
[InstSimplify] analyze (optionally casted) icmps to eliminate obviously false logic (PR27869) By moving this transform to InstSimplify from InstCombine, we sidestep the problem/question raised by PR27869: https://llvm.org/bugs/show_bug.cgi?id=27869 ...where InstCombine turns an icmp+zext into a shift causing us to miss the fold. Credit to David Majnemer for a draft patch of the changes to InstructionSimplify.cpp. Differential Revision: http://reviews.llvm.org/D21512 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273200 91177308-0d34-0410-b5e6-96231b3b80d8