commit | b83e520deee6bd34661b51b9f569f0fca7ba1122 | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Thu May 10 11:45:18 2018 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Thu May 10 11:45:18 2018 +0000 |
tree | d4c3d4aa0d5d7bf41b4bc8d0b30163327a1d29df | |
parent | b82663119e79ae94d96cb613dc74ad6aa911f7d8 [diff] |
[InstCombine] Only propagate known leading zeros from udiv input to output. Put in a conservatively correct estimate for now. Avoids miscompiling clang in FDO mode. This is really tricky to trigger in reality as basically all interesting cases will be folded away by computeKnownBits earlier, I was unable to find a reasonably small test case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@331975 91177308-0d34-0410-b5e6-96231b3b80d8