commit | f0a3e25eca945f00368b68c9aa006b95b92fafaf | [log] [tgz] |
---|---|---|
author | Sanjay Patel <spatel@rotateright.com> | Mon May 15 19:16:49 2017 +0000 |
committer | Sanjay Patel <spatel@rotateright.com> | Mon May 15 19:16:49 2017 +0000 |
tree | bf113c1e1b02ea9211aba3b38626a5037b3e65aa | |
parent | 8b48b0420b9443d56a589ac8d4e90545771cffec [diff] |
[InstSimplify] restrict icmp fold with 2 sdiv exact operands (PR32949) These folds were introduced with https://reviews.llvm.org/rL127064 as part of solving: https://bugs.llvm.org/show_bug.cgi?id=9343 As shown here: http://rise4fun.com/Alive/C8 ...however, the sdiv exact case needs a stronger predicate. I opted for duplicated code instead of adding another fallthrough because I think that's easier to read (and edit in case we need/want to restrict/loosen the predicates any more). This should fix: https://bugs.llvm.org/show_bug.cgi?id=32949 https://bugs.llvm.org/show_bug.cgi?id=32948 Differential Revision: https://reviews.llvm.org/D32954 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303104 91177308-0d34-0410-b5e6-96231b3b80d8