commit | 02d9cc1a8ee6c15ffeb561276c22e387764de0fb | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@intel.com> | Sat Apr 20 04:38:49 2019 +0000 |
committer | Craig Topper <craig.topper@intel.com> | Sat Apr 20 04:38:49 2019 +0000 |
tree | 2e82f9120948bfcb677c3742ed4fcbf923f6cd09 | |
parent | 10f82c578ffec9e321bb4da9e470b4543ac65a15 [diff] |
[X86] Turn (and (anyextend (shl X, C1), C2)) into (shl (and (anyextend X), (C1 >> C2), C2) if the AND could match a movzx. There's one slight regression in here because we don't check that the immediate already allowed movzx before the shift. I'll fix that next. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358804 91177308-0d34-0410-b5e6-96231b3b80d8