diff options
author | Craig Topper <craig.topper@intel.com> | 2019-04-20 04:38:53 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2019-04-20 04:38:53 +0000 |
commit | 4d4b5d952e4587d320fa94db5bce783a915d03ee (patch) | |
tree | 3d1c75312d2bf77ba2d8a64a1f39a88f92e00c21 /llvm/utils/git | |
parent | 8b8264828cbc4de633dfce90a7185c52a83687dc (diff) | |
download | bcm5719-llvm-4d4b5d952e4587d320fa94db5bce783a915d03ee.tar.gz bcm5719-llvm-4d4b5d952e4587d320fa94db5bce783a915d03ee.zip |
[X86] Don't turn (and (shl X, C1), C2) into (shl (and X, (C1 >> C2), C2) if the original AND can represented by MOVZX.
The MOVZX doesn't require an immediate to be encoded at all. Though it does use
a 2 byte opcode so its the same size as a 1 byte immediate. But it has a
separate source and dest register so can help avoid copies.
llvm-svn: 358805
Diffstat (limited to 'llvm/utils/git')
0 files changed, 0 insertions, 0 deletions