commit | 37496d05582c786c22c4fa2447fddb0308b7213e | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@intel.com> | Thu Feb 15 19:57:35 2018 +0000 |
committer | Craig Topper <craig.topper@intel.com> | Thu Feb 15 19:57:35 2018 +0000 |
tree | 02d888019d3b05b772029ca120e0955d87af5046 | |
parent | adf9928ba42a0a6341d09b99c1ba973b60c7411b [diff] |
[X86] Use btc/btr/bts to implement xor/and/or that affects a single bit in the upper 32-bits of a 64-bit operation. We can't fold a large immediate into a 64-bit operation. But if we know we're only operating on a single bit we can use the bit instructions. For now only do this for optsize. Differential Revision: https://reviews.llvm.org/D37418 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@325287 91177308-0d34-0410-b5e6-96231b3b80d8