commit | 6382ee0e42d414f6506f97e103892de07f1ad83f | [log] [tgz] |
---|---|---|
author | Sanjay Patel <spatel@rotateright.com> | Wed Nov 09 00:13:11 2016 +0000 |
committer | Sanjay Patel <spatel@rotateright.com> | Wed Nov 09 00:13:11 2016 +0000 |
tree | 685db3cd1ad09a018e6a45559a64542a03b12f23 | |
parent | 97d780bf6020d3b40d96351f599a5076ea2b43e3 [diff] |
[InstCombine] fix profitability equation for max-of-nots transform As the test change shows, we can increase the critical path by adding a 'not' instruction, so make sure that we're actually removing an instruction if we do this transform. This transform could also cause us to miss folds of min/max pairs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286315 91177308-0d34-0410-b5e6-96231b3b80d8